avoid undefined array access

SVN revision: 56086
This commit is contained in:
Mike Blumenkrantz 2011-01-14 03:11:00 +00:00
parent fe6de9181b
commit c5b6b33530
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ ecore_event_handler_add(int type, Ecore_Event_Handler_Cb func, const void *data)
}
if (ecore_raw_event_type == type)
event_handlers_add_list = (Ecore_Event_Handler *)eina_inlist_append(EINA_INLIST_GET(event_handlers_add_list), EINA_INLIST_GET(eh));
else
else if (type < event_handlers_alloc_num)
event_handlers[type] = (Ecore_Event_Handler *)eina_inlist_append(EINA_INLIST_GET(event_handlers[type]), EINA_INLIST_GET(eh));
return eh;
}