From: Cedric BAIL Date: Wed, 28 Dec 2011 15:19:31 +0000 (+0000) Subject: elementary: don't crash when argv is NULL. X-Git-Tag: v1.0.0~1302 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e9c861308473a6cd497d8214c42856c849044dc;p=platform%2Fupstream%2Felementary.git elementary: don't crash when argv is NULL. SVN revision: 66604 --- diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index 86c5d4b..1e2e787 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -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,