mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Remove a NULL check that didn't do any good. (#360904, Paolo Borelli)
2007-03-06 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_parse_value_as_boolean): Remove a NULL check that didn't do any good. (#360904, Paolo Borelli) svn path=/trunk/; revision=5375
This commit is contained in:
parent
5eaddd21bb
commit
2a6150bc06
@ -1,3 +1,9 @@
|
||||
2007-03-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_parse_value_as_boolean):
|
||||
Remove a NULL check that didn't do any good. (#360904,
|
||||
Paolo Borelli)
|
||||
|
||||
2007-03-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gmarkup.c (g_markup_parse_context_parse): Report
|
||||
|
@ -3589,13 +3589,10 @@ g_key_file_parse_value_as_boolean (GKeyFile *key_file,
|
||||
{
|
||||
gchar *value_utf8;
|
||||
|
||||
if (value)
|
||||
{
|
||||
if (strcmp (value, "true") == 0 || strcmp (value, "1") == 0)
|
||||
return TRUE;
|
||||
else if (strcmp (value, "false") == 0 || strcmp (value, "0") == 0)
|
||||
return FALSE;
|
||||
}
|
||||
if (strcmp (value, "true") == 0 || strcmp (value, "1") == 0)
|
||||
return TRUE;
|
||||
else if (strcmp (value, "false") == 0 || strcmp (value, "0") == 0)
|
||||
return FALSE;
|
||||
|
||||
value_utf8 = _g_utf8_make_valid (value);
|
||||
g_set_error (error, G_KEY_FILE_ERROR,
|
||||
|
Loading…
Reference in New Issue
Block a user