emotion: do not segv when no module are found.

This commit is contained in:
Cedric BAIL 2014-04-02 15:18:46 +09:00
parent e50bcc937c
commit 9b53044b6f
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ _find_mod(const char *name)
unsigned int i;
int inlen;
if (!name) return NULL;
if (!name || !_emotion_modules) return NULL;
inlen = strlen(name);
EINA_ARRAY_ITER_NEXT(_emotion_modules, i, m, iterator)
{