Check for params before checking for strlen of params.

SVN revision: 32281
This commit is contained in:
Christopher Michael 2007-11-02 01:37:16 +00:00
parent 4f4f035465
commit 55fce5437d
1 changed files with 1 additions and 1 deletions

View File

@ -1093,7 +1093,7 @@ _grab_key_down_cb(void *data, int type, void *event)
e_widget_ilist_unselect(cfdata->gui.o_action_list);
if (cfdata->locals.action) free(cfdata->locals.action);
cfdata->locals.action = strdup("");
if (cfdata->params[0])
if ((cfdata->params) && (cfdata->params[0]))
{
int j, g = -1;
_find_key_binding_action("exec", NULL, &g, NULL, &j);