]> Dogcows Code - chaz/openbox/commitdiff
was using random memory for parsing pipe menus with the new parse api
authorDana Jansens <danakj@orodu.net>
Sat, 28 Jul 2007 14:44:55 +0000 (10:44 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 20 Jan 2008 06:36:55 +0000 (01:36 -0500)
openbox/menu.c

index f6d19d0127fdd1fe01aa9697b938e836964562e3..a78aa4da015d944e628bb2edeba187e36fe858ec 100644 (file)
@@ -158,7 +158,6 @@ void menu_clear_pipe_caches(void)
 
 void menu_pipe_execute(ObMenu *self)
 {
-    xmlNodePtr node;
     gchar *output;
     GError *err = NULL;
 
@@ -179,7 +178,7 @@ void menu_pipe_execute(ObMenu *self)
     {
         menu_parse_state.pipe_creator = self;
         menu_parse_state.parent = self;
-        obt_parse_tree(menu_parse_inst, node->children);
+        obt_parse_tree_from_root(menu_parse_inst);
         obt_parse_close(menu_parse_inst);
     } else {
         g_message(_("Invalid output from pipe-menu '%s'"), self->execute);
This page took 0.025068 seconds and 4 git commands to generate.