From: Matthew Fernandez Date: Fri, 4 Mar 2022 16:06:03 +0000 (-0800) Subject: rsvg plugin: remove unused 'result' variable X-Git-Tag: 4.0.0~195^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96659ac1df8d472a9efc2350935382f877b48664;p=graphviz rsvg plugin: remove unused 'result' variable --- diff --git a/plugin/rsvg/gvloadimage_rsvg.c b/plugin/rsvg/gvloadimage_rsvg.c index cfbeaf34a..749a32119 100644 --- a/plugin/rsvg/gvloadimage_rsvg.c +++ b/plugin/rsvg/gvloadimage_rsvg.c @@ -40,7 +40,6 @@ static RsvgHandle* gvloadimage_rsvg_load(GVJ_t * job, usershape_t *us) guchar *fileBuf = NULL; GError *err = NULL; gsize fileSize; - gint result; int fd; struct stat stbuf; @@ -113,7 +112,7 @@ static RsvgHandle* gvloadimage_rsvg_load(GVJ_t * job, usershape_t *us) rewind(us->f); - if ((result = fread(fileBuf, 1, fileSize, us->f)) < fileSize) { + if (fread(fileBuf, 1, fileSize, us->f) < fileSize) { free(fileBuf); #if HAVE_G_OBJECT_UNREF g_object_unref(rsvgh);