From 896ab49a3c3cec8d616a31741df1df95bb594529 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 4 Mar 2003 22:20:54 +0000 Subject: Fixes #37881 2003-03-04 JP Rosevear Fixes #37881 * gui/component/select-names/e-simple-card-bonobo.c (impl_SimpleCard_get): if we get a null value, send back the empty string svn path=/trunk/; revision=20159 --- addressbook/gui/component/select-names/e-simple-card-bonobo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/select-names/e-simple-card-bonobo.c b/addressbook/gui/component/select-names/e-simple-card-bonobo.c index 0577daa648..07203618b3 100644 --- a/addressbook/gui/component/select-names/e-simple-card-bonobo.c +++ b/addressbook/gui/component/select-names/e-simple-card-bonobo.c @@ -100,7 +100,7 @@ impl_SimpleCard_get (PortableServer_Servant servant, if (priv->card_simple) { char *value = e_card_simple_get (priv->card_simple, field); - char *ret_val = CORBA_string_dup (value); + char *ret_val = CORBA_string_dup (value ? value : ""); g_free (value); return ret_val; } else { -- cgit