evas generic svg loader - dotn continue if rsvg handle is null
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 2 Jun 2016 13:31:53 +0000 (22:31 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 2 Jun 2016 13:31:53 +0000 (22:31 +0900)
should avoid complaints of null rsvg handles

src/generic/evas/svg/main.c

index 5fc7912..8c46708 100644 (file)
@@ -73,6 +73,7 @@ _svg_init(const char *file)
    if (!evas_image_load_file_is_svg(file)) return 0;
 
    rsvg = rsvg_handle_new_from_file(file, NULL);
+   if (!rsvg) return 0;
 
    return 1;
 }