]> Dogcows Code - chaz/openbox/commitdiff
i already fixed this once :) var declarations go first
authorDana Jansens <danakj@orodu.net>
Wed, 23 Jul 2003 15:06:49 +0000 (15:06 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 23 Jul 2003 15:06:49 +0000 (15:06 +0000)
plugins/menu/timed_menu.c

index db642fc173152b8d486904d702188a62120c71ab..3bf820a7ce6da5793e37558ffa2c44536c4f4c7d 100644 (file)
@@ -96,15 +96,18 @@ void timed_menu_read_pipe(int fd, void *d)
                     TIMED_MENU_DATA(menu)->buf + TIMED_MENU_DATA(menu)->buflen,
                     num_realloc);
     if (num_read == 0) {
-         menu->invalid = TRUE;
+        xmlDocPtr doc;
+        xmlNodePtr node;
+
+        menu->invalid = TRUE;
         menu_clear(menu);
 
         TIMED_MENU_DATA(menu)->buf[TIMED_MENU_DATA(menu)->buflen] = '\0';
 
-        xmlDocPtr doc = xmlParseMemory(TIMED_MENU_DATA(menu)->buf,
+        doc = xmlParseMemory(TIMED_MENU_DATA(menu)->buf,
                                        TIMED_MENU_DATA(menu)->buflen);
 
-        xmlNodePtr node = xmlDocGetRootElement(doc);
+        node = xmlDocGetRootElement(doc);
 
         if (!xmlStrcasecmp(node->name, (const xmlChar*) "timed_menu")) {
             if ((node = parse_find_node("item", node->xmlChildrenNode)))
This page took 0.024254 seconds and 4 git commands to generate.