]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary NUL_FILE use
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 30 Aug 2020 16:56:21 +0000 (09:56 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Sep 2020 17:38:46 +0000 (10:38 -0700)
The Cairo API supports simply passing NULL to indicate you do not want the
output written to a file.

plugin/rsvg/gvloadimage_rsvg.c

index 56ef22c35123be2e6ee1dc6a9d982f09bb181f60..7ac448218a43296821013d5bd707729ab8b1d99f 100644 (file)
@@ -187,7 +187,7 @@ static void gvloadimage_rsvg_cairo(GVJ_t * job, usershape_t *us, boxf b, boolean
     if (rsvgh) {
         cairo_save(cr);
 
-               surface = cairo_svg_surface_create(NUL_FILE, us->w, us->h); 
+               surface = cairo_svg_surface_create(NULL, us->w, us->h); 
 
        cairo_surface_reference(surface);