From b25989d6d21e66f36102fcdc87cff3ffdcb4eeec Mon Sep 17 00:00:00 2001 From: gotmor Date: Fri, 1 Jun 2007 11:28:57 +0000 Subject: 0.3.0 - switch to select() git-svn-id: http://dzen.googlecode.com/svn/trunk@42 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- action.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'action.c') diff --git a/action.c b/action.c index 7203a73..ad00d10 100644 --- a/action.c +++ b/action.c @@ -133,9 +133,10 @@ fill_ev_table(char *input) } if(str4 == kommatoken && str4 != token && eid != -1) { ev_table[eid].isset = 1; - ev_table[eid].action[i] = malloc(sizeof(As)); - if((ah = (void *)get_action_handler(dptoken))) + if((ah = (void *)get_action_handler(dptoken))) { + ev_table[eid].action[i] = emalloc(sizeof(As)); ev_table[eid].action[i]->handler= get_action_handler(dptoken); + } i++; } else if(str4 != token && eid != -1 && ah) { @@ -147,7 +148,7 @@ fill_ev_table(char *input) } k=0; } - ev_table[eid].action[i] = malloc(sizeof(As)); + ev_table[eid].action[i] = emalloc(sizeof(As)); ev_table[eid].action[i]->handler = NULL; i=0; } -- cgit v1.2.3-54-g00ecf