Apply patch from Bobby Potter <bobby@sylow.southwestern.edu>.

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
This commit is contained in:
Christopher Rosendahl 2001-08-15 13:31:13 +00:00
parent a20ab0c6ff
commit 6347565356
1 changed files with 2 additions and 2 deletions

View File

@ -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;