Commit e3e53077 authored by Dom Lachowicz's avatar Dom Lachowicz

prevent against getting a null handle back

parent a68c1f3a
2006-03-19 Dom Lachowicz <cinamod@hotmail.com>
* rsvg-base.c: Fix a crash exposed by bug 335107
* rsvg-convert: Prevent warnings/crash after getting a null RsvgHandle back
2006-03-16 Dom Lachowicz <cinamod@hotmail.com>
......
......@@ -202,6 +202,11 @@ main (int argc, const char **argv)
else
rsvg = rsvg_handle_new_from_file (args[i], NULL);
if(!rsvg) {
fprintf (stderr, _("Error reading SVG.\n"));
exit (1);
}
if (base_uri)
rsvg_handle_set_base_uri (rsvg, base_uri);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment