From: Matthew Fernandez Date: Thu, 8 Sep 2022 00:27:49 +0000 (-0700) Subject: rsvg plugin gvloadimage_rsvg_load: remove unnecessary use of gboolean X-Git-Tag: 7.0.0~12^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4669bb95997b16b60296bcaa3415b8adc94c3b7b;p=graphviz rsvg plugin gvloadimage_rsvg_load: remove unnecessary use of gboolean --- diff --git a/plugin/rsvg/gvloadimage_rsvg.c b/plugin/rsvg/gvloadimage_rsvg.c index 3fc83a788..51324fb33 100644 --- a/plugin/rsvg/gvloadimage_rsvg.c +++ b/plugin/rsvg/gvloadimage_rsvg.c @@ -108,7 +108,7 @@ static RsvgHandle* gvloadimage_rsvg_load(GVJ_t * job, usershape_t *us) return NULL; } - if (rsvg_handle_write(rsvgh, (const guchar *)fileBuf, (gsize)fileSize, &err) == FALSE) { + if (!rsvg_handle_write(rsvgh, (const guchar *)fileBuf, (gsize)fileSize, &err)) { fprintf(stderr, "rsvg_handle_write returned an error: %s\n", err->message); free(fileBuf); #if HAVE_G_OBJECT_UNREF