trivial: Fix two more compile warnings

This commit is contained in:
Richard Hughes 2016-08-26 11:02:31 +01:00
parent c2592a4aa2
commit 4ced466f95

View File

@ -468,9 +468,9 @@ fu_main_helper_free (FuMainAuthHelper *helper)
/* free */ /* free */
if (helper->devices != NULL) if (helper->devices != NULL)
g_ptr_array_unref (helper->devices); g_ptr_array_unref (helper->devices);
if (helper->blob_fws > 0) if (helper->blob_fws != NULL)
g_ptr_array_unref (helper->blob_fws); g_ptr_array_unref (helper->blob_fws);
if (helper->blob_cab > 0) if (helper->blob_cab != NULL)
g_bytes_unref (helper->blob_cab); g_bytes_unref (helper->blob_cab);
if (helper->store != NULL) if (helper->store != NULL)
g_object_unref (helper->store); g_object_unref (helper->store);
@ -1706,15 +1706,15 @@ fu_main_daemon_method_call (GDBusConnection *connection, const gchar *sender,
/* ensure the unique ID is set */ /* ensure the unique ID is set */
if (fwupd_result_get_unique_id (FWUPD_RESULT (item->device)) == NULL) { if (fwupd_result_get_unique_id (FWUPD_RESULT (item->device)) == NULL) {
g_autofree gchar *id = NULL; g_autofree gchar *id2 = NULL;
FwupdResult *res = FWUPD_RESULT (item->device); FwupdResult *res = FWUPD_RESULT (item->device);
id = as_utils_unique_id_build (AS_APP_SCOPE_SYSTEM, id2 = as_utils_unique_id_build (AS_APP_SCOPE_SYSTEM,
AS_BUNDLE_KIND_UNKNOWN, AS_BUNDLE_KIND_UNKNOWN,
NULL, NULL,
AS_APP_KIND_FIRMWARE, AS_APP_KIND_FIRMWARE,
fwupd_result_get_device_name (res), fwupd_result_get_device_name (res),
fwupd_result_get_device_version (res)); fwupd_result_get_device_version (res));
fwupd_result_set_unique_id (res, id); fwupd_result_set_unique_id (res, id2);
} }
/* success */ /* success */