[grilo] core: Fix uninitialized variable in grl_registry_preload_plugin()



commit 74315e28c9bd0c2fbbbcba33d87c9935a20c3fc6
Author: Alberto Garcia <agarcia igalia com>
Date:   Wed Mar 20 12:27:34 2013 +0200

    core: Fix uninitialized variable in grl_registry_preload_plugin()
    
    If the plugin XML file can't be read in grl_registry_preload_plugin(),
    the function returns an uninitialized pointer instead of NULL.

 src/grl-registry.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/grl-registry.c b/src/grl-registry.c
index bab4d70..b9a7e2c 100644
--- a/src/grl-registry.c
+++ b/src/grl-registry.c
@@ -350,7 +350,7 @@ grl_registry_preload_plugin (GrlRegistry *registry,
                              const gchar *plugin_info_filename)
 {
   GHashTable *info;
-  GrlPlugin *plugin;
+  GrlPlugin *plugin = NULL;
   gchar *file;
   gchar *suffix;
   gchar *id;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]