summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-27 19:52:49 +0000
committerDana Jansens <danakj@orodu.net>2003-10-27 19:52:49 +0000
commit7c80db2552c97be9145ce88dd40f80b0873f56ef (patch)
tree94310b838965fd930c159f6cc7c910a502b11283
parent671a30187f8cdc64c6b0a97eb0c7eb2f33c4247e (diff)
was setting NULL incorrectly to cancel actions and then not checking for NULL before using it
-rw-r--r--openbox/action.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 4ea50fe5..17d951cf 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -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)