From ac5bfadbfe530f492cd9f8acf89aea2fdcda6844 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 6 Feb 2002 19:02:24 +0000 Subject: [PATCH] sorry, but I'd like this fixed ;) Original commit message from CVS: sorry, but I'd like this fixed ;) --- gst/gstplugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstplugin.c b/gst/gstplugin.c index a74451c..52f3119 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -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 || -- 2.7.4