summaryrefslogtreecommitdiff
path: root/src/lib/emotion/emotion_modules.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2014-04-02 15:18:46 +0900
committerCedric BAIL <cedric.bail@free.fr>2014-04-02 15:43:47 +0900
commit9b53044b6f0d2ad963caa449f38975db40ddd342 (patch)
treea080f793832552b069b1eb398f10b61b0900b2a1 /src/lib/emotion/emotion_modules.c
parente50bcc937ca8bb99efcaf87129ff9b21a4d8aae1 (diff)
emotion: do not segv when no module are found.
Diffstat (limited to 'src/lib/emotion/emotion_modules.c')
-rw-r--r--src/lib/emotion/emotion_modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/emotion/emotion_modules.c b/src/lib/emotion/emotion_modules.c
index 6a362a2f84..d10520df44 100644
--- a/src/lib/emotion/emotion_modules.c
+++ b/src/lib/emotion/emotion_modules.c
@@ -291,7 +291,7 @@ _find_mod(const char *name)
291 unsigned int i; 291 unsigned int i;
292 int inlen; 292 int inlen;
293 293
294 if (!name) return NULL; 294 if (!name || !_emotion_modules) return NULL;
295 inlen = strlen(name); 295 inlen = strlen(name);
296 EINA_ARRAY_ITER_NEXT(_emotion_modules, i, m, iterator) 296 EINA_ARRAY_ITER_NEXT(_emotion_modules, i, m, iterator)
297 { 297 {