sorry, but I'd like this fixed ;)
authorThomas Vander Stichele <thomas@apestaart.org>
Wed, 6 Feb 2002 19:02:24 +0000 (19:02 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Wed, 6 Feb 2002 19:02:24 +0000 (19:02 +0000)
Original commit message from CVS:
sorry, but I'd like this fixed ;)

gst/gstplugin.c

index a74451c..52f3119 100644 (file)
@@ -63,7 +63,7 @@ _gst_plugin_initialize (void)
 {
   GList *gst_plugin_default_paths = NULL;
 #ifndef GST_DISABLE_REGISTRY
-  xmlDocPtr doc;
+  xmlDocPtr doc = NULL;
   xmlNodePtr root;
 #endif
 
@@ -90,6 +90,7 @@ _gst_plugin_initialize (void)
 
 #ifndef GST_DISABLE_REGISTRY
   doc = xmlParseFile (GST_CONFIG_DIR"/reg.xml");
+  g_assert (doc != NULL);
 
   if (!doc || 
       !doc->xmlRootNode ||