]> spindle.queued.net Git - midori/commitdiff
Initialize extension to NULL in midori_load_extensions
authorChristian Dywan <christian@twotoasts.de>
Sat, 11 Sep 2010 21:24:19 +0000 (23:24 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 11 Sep 2010 22:59:24 +0000 (00:59 +0200)
midori/main.c

index 5f464f1890379cf472dcd1e69b45df3fe2d70af3..ab35fc95c8ad76d1ce4690b775a1eba008421ff0 100644 (file)
@@ -1120,7 +1120,7 @@ midori_load_extensions (gpointer data)
                 GModule* module;
                 typedef MidoriExtension* (*extension_init_func)(void);
                 extension_init_func extension_init;
-                MidoriExtension* extension;
+                MidoriExtension* extension = NULL;
 
                 /* Ignore files which don't have the correct suffix */
                 if (!g_str_has_suffix (filename, G_MODULE_SUFFIX))