From: Christian Dywan Date: Sun, 13 Nov 2011 19:09:13 +0000 (+0100) Subject: Ensure data is initialized in midori_array_to_file_format X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49758e4dd8ace0c573a687f94b5c57bc007df38a;p=midori Ensure data is initialized in midori_array_to_file_format --- diff --git a/midori/midori-array.c b/midori/midori-array.c index e6194aa3..fe40f907 100644 --- a/midori/midori-array.c +++ b/midori/midori-array.c @@ -905,10 +905,9 @@ midori_array_to_file_format (KatzeArray* array, if (!g_strcmp0 (format, "xbel")) data = katze_array_to_xbel (array, error); - if (!g_strcmp0 (format, "netscape")) + else if (!g_strcmp0 (format, "netscape")) data = katze_array_to_netscape_html (array, error); - - if (!data) + else return FALSE; if (!(fp = fopen (filename, "w"))) {