diff options
author | Philip Withnall <withnall@endlessm.com> | 2020-08-18 10:36:26 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2020-08-18 10:36:26 +0100 |
commit | 9664ff15ac775a481925fe1878c3b5ba84244926 (patch) | |
tree | e752f2b5741cf2149643e69ee4a0666a016f2abe /gio | |
parent | c50fb4f31734e794b34d96c02514349ff00005a9 (diff) | |
download | glib-9664ff15ac775a481925fe1878c3b5ba84244926.tar.gz |
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 <withnall@endlessm.com>
Diffstat (limited to 'gio')
-rw-r--r-- | gio/gdbusaddress.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |