From 2603255b7453c5fe9a2caef2cbb5974f6145ff8d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 23 Jul 2003 15:13:54 +0000 Subject: [PATCH] declare vars at top --- plugins/menu/include_menu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) { -- 2.45.2