commit 7c1ea64fe3bb78a8f7289eb28beeb40c62d0f141
parent 671a081c4aad640f05db26535a2a660ae27643c8
Author: Ricardo Mones <ricardo@mones.org>
Date: Sat, 3 Jun 2023 12:58:22 +0200
Fix error creation and warning
The error won't be created if the GQuark is 0, only a warning is
emitted and NULL is returned. See:
https://gitlab.gnome.org/GNOME/glib/-/blob/main/glib/gerror.c#L792
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
@@ -509,7 +509,7 @@ static void load_content_cb(WebKitURISchemeRequest *request, gpointer viewer)
}
}
- error = g_error_new(0, 0, _("Couldn't save the part of multipart message: %s"), image);
+ error = g_error_new(G_FILE_ERROR, 0, _("Couldn't save the part of multipart message: %s"), image);
webkit_uri_scheme_request_finish_error(request, error);
g_error_free(error);
g_free(image);