]> granicus.if.org Git - graphviz/commitdiff
rsvg plugin: remove unused 'result' variable
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 4 Mar 2022 16:06:03 +0000 (08:06 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Mar 2022 02:12:52 +0000 (18:12 -0800)
plugin/rsvg/gvloadimage_rsvg.c

index cfbeaf34a2fe322634dbe385f1880fe4beaa959b..749a32119cf9c373c0fef5a97c842adb75af5e61 100644 (file)
@@ -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);