Save NULL string value as ""

master
Yevgen Muntyan 2006-07-14 22:33:26 -05:00
parent 170f947bb0
commit 9ab44dd1b0
1 changed files with 3 additions and 1 deletions

View File

@ -989,7 +989,9 @@ write_item (const char *key,
}
string = moo_value_convert_to_string (item_value (item));
g_return_if_fail (string != NULL);
if (!string)
string = "";
if (!stuff->root)
stuff->root =