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.
This commit is contained in:
Matthew Allum 2007-06-19 14:47:33 +00:00
parent 6a148d571e
commit d30396cf0c
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -598,8 +598,8 @@ clutter_init_with_args (int *argc,
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 ();
@ -694,8 +694,8 @@ clutter_init (int *argc,
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 ();