]> spindle.queued.net Git - midori/commitdiff
Ensure data is initialized in midori_array_to_file_format
authorChristian Dywan <christian@twotoasts.de>
Sun, 13 Nov 2011 19:09:13 +0000 (20:09 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 15 Nov 2011 17:34:19 +0000 (18:34 +0100)
midori/midori-array.c

index e6194aa32c24e07ae6320d18b615215c4e1ec7df..fe40f907986fadc685350886d763042772867cf1 100644 (file)
@@ -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")))
     {