[glib: 1/2] gkeyfile: Remove some unreachable code
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gkeyfile: Remove some unreachable code
- Date: Wed, 6 Jul 2022 11:06:55 +0000 (UTC)
commit 3c69cd369f9203c6b66ae298bb7d08764f373f36
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Jul 5 10:41:49 2022 +0100
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
glib/gkeyfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c
index b5a2ed5ef7..6ae738ca12 100644
--- a/glib/gkeyfile.c
+++ b/glib/gkeyfile.c
@@ -3361,7 +3361,7 @@ g_key_file_set_group_comment (GKeyFile *key_file,
g_set_error (error, G_KEY_FILE_ERROR,
G_KEY_FILE_ERROR_GROUP_NOT_FOUND,
_("Key file does not have group “%s”"),
- group_name ? group_name : "(null)");
+ group_name);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]