GNOME Bugzilla – Bug 379365
Do not printf NULL string pointers
Last modified: 2006-12-14 09:23:14 UTC
On Solaris and Windows calling printf("%s", NULL) makes the app crash, but this is what bonobo-dock-layout.c does in certain circumstances. Please see the attached patch.
Created attachment 77151 [details] [review] Use "" if i->item->name is NULL
Are you sure this shouldn't be handled in g_strdup_printf() itself? I had the impression that g_strdup() and friends should handle NULL?
Sorry for the typo in comment 0, i mean g_printf, of course :) I am following http://mail.gnome.org/archives/gtk-devel-list/2005-May/msg00033.html, https://lists.gnucash.org/pipermail/gnucash-devel/2006-August/018475.html and bug 361428 here. So although I would like these functions to be robust, I do not expect a change in the foreseeable future.
Ok. Commited.