mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
gkeyfile: Remove some unreachable code
There’s a precondition assertion on the function which checks that `group_name != NULL`. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Coverity CID: #1474780
This commit is contained in:
parent
ccc9bc1400
commit
3c69cd369f
@ -3361,7 +3361,7 @@ g_key_file_set_group_comment (GKeyFile *key_file,
|
|||||||
g_set_error (error, G_KEY_FILE_ERROR,
|
g_set_error (error, G_KEY_FILE_ERROR,
|
||||||
G_KEY_FILE_ERROR_GROUP_NOT_FOUND,
|
G_KEY_FILE_ERROR_GROUP_NOT_FOUND,
|
||||||
_("Key file does not have group “%s”"),
|
_("Key file does not have group “%s”"),
|
||||||
group_name ? group_name : "(null)");
|
group_name);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user