From 63475653569866738c6095bd9e79fe6357025f93 Mon Sep 17 00:00:00 2001 From: Christopher Rosendahl Date: Wed, 15 Aug 2001 13:31:13 +0000 Subject: [PATCH] Apply patch from Bobby Potter . To fix segfault if a->params is NULLL same goes for a->key... I still have some problems over here which im going to look into right now. SVN revision: 5167 --- src/actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions.c b/src/actions.c index 0b4e43e21..2a32d9843 100644 --- a/src/actions.c +++ b/src/actions.c @@ -193,10 +193,10 @@ _e_action_find(char *action, int act, int button, char *key, Ev_Key_Modifiers mo aa->name = strdup(a->name); aa->action = strdup(a->action); - aa->params = strdup(a->params); + if (a->params) aa->params = strdup(a->params); aa->event = a->event; aa->button = a->button; - aa->key = strdup(a->key); + if (a->key) aa->key = strdup(a->key); aa->modifiers = a->modifiers; aa->action_proto = ap; aa->object = o;