* clutter/clutter-main.c: (clutter_init_with_args), (clutter_init):
Safer checks for setting progname if NULL is passed in init.
+2007-06-19 Matthew Allum <mallum@openedhand.com>
+
+ * clutter/clutter-main.c: (clutter_init_with_args), (clutter_init):
+ Safer checks for setting progname if NULL is passed in init.
+
2007-06-19 Emmanuele Bassi <ebassi@openedhand.com>
* autogen.sh: autoreconf needs a README.
if (clutter_is_initialized)
return CLUTTER_INIT_SUCCESS;
- if (*argc > 0)
- g_set_prgname (*argv[0]);
+ if (argc && *argc > 0 && *argv)
+ g_set_prgname ((*argv)[0]);
clutter_base_init ();
if (clutter_is_initialized)
return CLUTTER_INIT_SUCCESS;
- if (*argc > 0)
- g_set_prgname (*argv[0]);
+ if (argc && *argc > 0 && *argv)
+ g_set_prgname ((*argv)[0]);
clutter_base_init ();