]> Dogcows Code - chaz/openbox/commitdiff
declare vars at top
authorDana Jansens <danakj@orodu.net>
Wed, 23 Jul 2003 15:13:54 +0000 (15:13 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 23 Jul 2003 15:13:54 +0000 (15:13 +0000)
plugins/menu/include_menu.c

index b4f383224d08639820651ae92d62c5c7722a0894..2335f9e0e0a143b72364b1c1f9ddae7554a56fe3 100644 (file)
@@ -29,7 +29,8 @@ void *plugin_create(PluginMenuCreateData *data)
     char *label;
     char *filename;
     ObMenu *m;
-    
+    xmlDocPtr doc;
+
     parse_attr_string("id", data->node, &id);
     parse_attr_string("label", data->node, &label);
     
@@ -41,7 +42,7 @@ void *plugin_create(PluginMenuCreateData *data)
 
     parse_attr_string("filename", data->node, &filename);
 
-    xmlDocPtr doc = xmlParseFile(filename);
+    doc = xmlParseFile(filename);
     if (doc) {
         xmlNodePtr node = xmlDocGetRootElement(doc);
         if (node) {
This page took 0.022265 seconds and 4 git commands to generate.