Commit 202378c3 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

check ii being null as a precondition rather then silently returning

Thu Oct 07 14:25:02 1999  George Lebl  <jirka@5z.com>

        * menu-fentry.c: (get_applet_goad_id_from_dentry) check ii being null
          as a precondition rather then silently returning
parent cd7e3edf
Thu Oct 07 14:25:02 1999 George Lebl <jirka@5z.com>
* menu-fentry.c: (get_applet_goad_id_from_dentry) check ii being null
as a precondition rather then silently returning
1999-10-06 Jacob Berkman <jberkman@andrew.cmu.edu>
* TODO: a couple of things off the top of my head
......
Thu Oct 07 14:25:02 1999 George Lebl <jirka@5z.com>
* menu-fentry.c: (get_applet_goad_id_from_dentry) check ii being null
as a precondition rather then silently returning
1999-10-06 Jacob Berkman <jberkman@andrew.cmu.edu>
* TODO: a couple of things off the top of my head
......
......@@ -80,7 +80,10 @@ get_applet_goad_id_from_dentry(GnomeDesktopEntry *ii)
int i;
int constantlen = strlen("--activate-goad-server");
char *goad_id=NULL;
if (!ii || !ii->exec)
g_return_val_if_fail(ii!=NULL,NULL);
if (!ii->exec)
return NULL;
/*FIXME:
this is a horrible horrible hack and should be taken out
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment