From 9664ff15ac775a481925fe1878c3b5ba84244926 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 18 Aug 2020 10:36:26 +0100 Subject: [PATCH] gdbusaddress: Drop an unnecessary NULL check `g_strsplit()` never returns `NULL`, although it can return an empty strv (i.e. with its first element being `NULL`). Drop a redundant `NULL` check. Coverity CID: #1430976 Signed-off-by: Philip Withnall --- gio/gdbusaddress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gdbusaddress.c b/gio/gdbusaddress.c index 6958d7cc6..3dd3cc84b 100644 --- a/gio/gdbusaddress.c +++ b/gio/gdbusaddress.c @@ -982,7 +982,7 @@ g_dbus_address_get_stream_sync (const gchar *address, goto out; } - for (n = 0; addr_array != NULL && addr_array[n] != NULL; n++) + for (n = 0; addr_array[n] != NULL; n++) { const gchar *addr = addr_array[n]; GError *this_error;