trivial: Fix some NULL/FALSE confusion

This commit is contained in:
Richard Hughes 2018-11-07 11:13:23 +00:00
parent aaa60c60d9
commit be95da483c
2 changed files with 5 additions and 5 deletions

View File

@ -398,7 +398,7 @@ fu_common_cab_build_silo (GBytes *blob, guint64 size_max, GError **error)
FWUPD_ERROR_INTERNAL,
"failed to create temp dir: %s",
error_local->message);
return FALSE;
return NULL;
}
helper.decompress_path = tmp_path;
tmp_file = g_file_new_for_path (tmp_path);

View File

@ -46,9 +46,9 @@ fu_common_guid_from_data (const gchar *namespace_id,
uuid_t uu_new;
g_autoptr(GChecksum) csum = NULL;
g_return_val_if_fail (namespace_id != NULL, FALSE);
g_return_val_if_fail (data != NULL, FALSE);
g_return_val_if_fail (data_len != 0, FALSE);
g_return_val_if_fail (namespace_id != NULL, NULL);
g_return_val_if_fail (data != NULL, NULL);
g_return_val_if_fail (data_len != 0, NULL);
/* convert the namespace to binary */
rc = uuid_parse (namespace_id, uu_namespace);
@ -58,7 +58,7 @@ fu_common_guid_from_data (const gchar *namespace_id,
FWUPD_ERROR_NOT_SUPPORTED,
"namespace '%s' is invalid",
namespace_id);
return FALSE;
return NULL;
}
/* hash the namespace and then the string */