From 1f0f6705804f7a5f1e4e601fb0b91331485bb4cd Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 6 Mar 2003 16:42:00 +0000 Subject: (import_bonobo_config): Protect from val being NULL when printf()ing -- should fix #39096 (Solaris-specific crash). svn path=/trunk/; revision=20195 --- shell/ChangeLog | 6 ++++++ shell/e-config-upgrade.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 28b28cfc79..58b66e1e1b 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2003-03-06 Ettore Perazzoli + + * e-config-upgrade.c (import_bonobo_config): Protect from val + being NULL when printf()ing -- should fix #39096 (Solaris-specific + crash). + 2003-03-05 Ettore Perazzoli * e-shell-view-menu.c: Added icon for "/popups/NewPopup/Folder". diff --git a/shell/e-config-upgrade.c b/shell/e-config-upgrade.c index 9848ac09e2..4d574cc28e 100644 --- a/shell/e-config-upgrade.c +++ b/shell/e-config-upgrade.c @@ -1341,7 +1341,11 @@ static int import_bonobo_config(xmlDocPtr config_doc, GConfClient *gconf) if (val == NULL) continue; } - d(printf(" %s = '%s' -> %s [%d]\n", map[j].from, val, map[j].to, map[j].type)); + d(printf(" %s = '%s' -> %s [%d]\n", + map[j].from, + val == NULL ? "(null)" : val, + map[j].to, + map[j].type)); path = g_strdup_printf("/apps/evolution/%s", map[j].to); switch(map[j].type) { case BMAP_BOOL: -- cgit v1.2.3