i already fixed this once :) var declarations go first

This commit is contained in:
Dana Jansens 2003-07-23 15:06:49 +00:00
parent 2c92ab7679
commit 03186a7bab

View 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) {
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)))