r15716 - gnucash/trunk/src/gnome-utils - Do not printf %s if the param is NULL.
Andreas Köhler
andi5 at cvs.gnucash.org
Wed Mar 14 16:05:26 EDT 2007
Author: andi5
Date: 2007-03-14 16:05:24 -0400 (Wed, 14 Mar 2007)
New Revision: 15716
Trac: http://svn.gnucash.org/trac/changeset/15716
Modified:
gnucash/trunk/src/gnome-utils/dialog-preferences.c
Log:
Do not printf %s if the param is NULL.
Modified: gnucash/trunk/src/gnome-utils/dialog-preferences.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-preferences.c 2007-03-14 09:55:32 UTC (rev 15715)
+++ gnucash/trunk/src/gnome-utils/dialog-preferences.c 2007-03-14 20:05:24 UTC (rev 15716)
@@ -1055,7 +1055,7 @@
name = gtk_widget_get_name(GTK_WIDGET(entry)) + PREFIX_LEN;
text = gnc_gconf_get_string(name, NULL, NULL);
gtk_entry_set_text(GTK_ENTRY(entry), text ? text : "");
- DEBUG(" Entry %s set to '%s'", name, text);
+ DEBUG(" Entry %s set to '%s'", name?name:"(null)", text?text:"(null)");
g_signal_connect(G_OBJECT(entry), "changed",
G_CALLBACK(gnc_prefs_entry_user_cb), NULL);
}
More information about the gnucash-changes
mailing list