elementary: don't crash when argv is NULL.
authorCedric BAIL <cedric.bail@free.fr>
Wed, 28 Dec 2011 15:19:31 +0000 (15:19 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Wed, 28 Dec 2011 15:19:31 +0000 (15:19 +0000)
SVN revision: 66604

src/lib/elm_main.c

index 86c5d4b..1e2e787 100644 (file)
@@ -387,7 +387,7 @@ elm_quicklaunch_init(int    argc,
 
    if (argv) _elm_appname = strdup(ecore_file_file_get(argv[0]));
 
-   pfx = eina_prefix_new(argv[0], elm_quicklaunch_init,
+   pfx = eina_prefix_new(argv ? argv[0] : NULL, elm_quicklaunch_init,
                          "ELM", "elementary", "config/profile.cfg",
                          PACKAGE_LIB_DIR, /* don't have a bin dir currently */
                          PACKAGE_LIB_DIR,