From: Dana Jansens Date: Wed, 23 Jul 2003 15:13:54 +0000 (+0000) Subject: declare vars at top X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2603255b7453c5fe9a2caef2cbb5974f6145ff8d;p=chaz%2Fopenbox declare vars at top --- diff --git a/plugins/menu/include_menu.c b/plugins/menu/include_menu.c index b4f38322..2335f9e0 100644 --- a/plugins/menu/include_menu.c +++ b/plugins/menu/include_menu.c @@ -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) {