diff options
author | Richard Hughes <richard@hughsie.com> | 2022-09-13 11:33:20 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-09-13 11:42:35 +0100 |
commit | 0d8148627f83fbe8a6deee828c6a4b5ccee3279a (patch) | |
tree | 7e45f26dae359dbc808bc9760f283f21b4595d67 | |
parent | 429e7186543c95a9e3d1be552168cdc9e5501d3b (diff) | |
download | gusb-0d8148627f83fbe8a6deee828c6a4b5ccee3279a.tar.gz |
trivial: Don't return -1 for failure for a gboolean
-rw-r--r-- | gusb/gusb-context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c index b0a3b99..e52a265 100644 --- a/gusb/gusb-context.c +++ b/gusb/gusb-context.c @@ -382,7 +382,7 @@ g_usb_context_load(GUsbContext *self, JsonObject *json_object, GError **error) g_return_val_if_fail(G_USB_IS_CONTEXT(self), FALSE); g_return_val_if_fail(json_object != NULL, FALSE); - g_return_val_if_fail(error == NULL || *error == NULL, -1); + g_return_val_if_fail(error == NULL || *error == NULL, FALSE); /* remove existing devices */ g_ptr_array_set_size(priv->devices, 0); |