gdbusauthmechanismsha1: Fix return type in precondition guards

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-05-05 15:12:11 +01:00
parent 6bf221c441
commit f4dc46db45

View File

@ -462,8 +462,8 @@ keyring_acquire_lock (const gchar *path,
#endif
int errsv;
g_return_val_if_fail (path != NULL, FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
g_return_val_if_fail (path != NULL, -1);
g_return_val_if_fail (error == NULL || *error == NULL, -1);
ret = -1;
lock = g_strdup_printf ("%s.lock", path);