ecore_imf: Fix crash when ECORE_IMF_MODULE is set
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 5 Aug 2016 02:33:01 +0000 (11:33 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 5 Aug 2016 02:33:01 +0000 (11:33 +0900)
src/lib/ecore_imf/ecore_imf_module.c

index e4d651c..9deede1 100644 (file)
@@ -65,8 +65,7 @@ ecore_imf_module_init(void)
                {
                   const char **itr;
                   const char **modules_load;
-                  const char *env;
-                  const char *modules_one[1] = { NULL };
+                  const char *modules_one[2] = { NULL, NULL };
 
                   modules_load = built_modules;
                   env = getenv("ECORE_IMF_MODULE");