mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 12:25:38 +00:00
trivial: Fix a potential crash spotted with clang
This commit is contained in:
parent
bdea096742
commit
f3c1b56e73
@ -235,7 +235,8 @@ fwupd_client_get_devices (FwupdClient *client, GCancellable *cancellable, GError
|
|||||||
cancellable,
|
cancellable,
|
||||||
error);
|
error);
|
||||||
if (val == NULL) {
|
if (val == NULL) {
|
||||||
g_dbus_error_strip_remote_error (*error);
|
if (error != NULL)
|
||||||
|
g_dbus_error_strip_remote_error (*error);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return fwupd_client_parse_results_from_data (val);
|
return fwupd_client_parse_results_from_data (val);
|
||||||
@ -276,7 +277,8 @@ fwupd_client_get_updates (FwupdClient *client, GCancellable *cancellable, GError
|
|||||||
cancellable,
|
cancellable,
|
||||||
error);
|
error);
|
||||||
if (val == NULL) {
|
if (val == NULL) {
|
||||||
g_dbus_error_strip_remote_error (*error);
|
if (error != NULL)
|
||||||
|
g_dbus_error_strip_remote_error (*error);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return fwupd_client_parse_results_from_data (val);
|
return fwupd_client_parse_results_from_data (val);
|
||||||
|
Loading…
Reference in New Issue
Block a user