From 49758e4dd8ace0c573a687f94b5c57bc007df38a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 13 Nov 2011 20:09:13 +0100 Subject: [PATCH] Ensure data is initialized in midori_array_to_file_format --- midori/midori-array.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"))) { -- 2.39.5