* at least on bora, gconf crashes if you try to set a NULL string,
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 15 May 2007 09:14:25 +0000 (09:14 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 15 May 2007 09:14:25 +0000 (09:14 +0000)
  the NULL is a symptom of another bug (it causes the crash in bug
  #57045), but at least we should be safe against NULLs.

pmo-trunk-r1866

src/modest-conf.c

index cdf2062..ca44ae0 100644 (file)
@@ -251,6 +251,7 @@ modest_conf_set_string (ModestConf* self, const gchar* key, const gchar* val,
                
        g_return_val_if_fail (self,FALSE);
        g_return_val_if_fail (key, FALSE);
+       g_return_val_if_fail (val, FALSE);
        
        priv = MODEST_CONF_GET_PRIVATE(self);