]> Dogcows Code - chaz/openbox/commitdiff
was setting NULL incorrectly to cancel actions and then not checking for NULL before...
authorDana Jansens <danakj@orodu.net>
Mon, 27 Oct 2003 19:52:49 +0000 (19:52 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 27 Oct 2003 19:52:49 +0000 (19:52 +0000)
openbox/action.c

index 4ea50fe51f93961825ccfee246a4f25d8dc1a287..17d951cfe83dffcd29dbf21701c5e6c115fe3a3a 100644 (file)
@@ -395,7 +395,7 @@ void setup_action_showmenu(ObAction **a, ObUserAction uact)
        a time! */
     if (uact == OB_USER_ACTION_MENU_SELECTION) {
         action_unref(*a);
-        a = NULL;
+        *a = NULL;
     }
 }
 
@@ -817,7 +817,8 @@ ObAction *action_from_string(const gchar *name, ObUserAction uact)
             a = action_new(actionstrings[i].func);
             if (actionstrings[i].setup)
                 actionstrings[i].setup(&a, uact);
-            INTERACTIVE_LIMIT(a, uact);
+            if (a)
+                INTERACTIVE_LIMIT(a, uact);
             break;
         }
     if (!exist)
This page took 0.025395 seconds and 4 git commands to generate.