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>
This commit is contained in:
Philip Withnall 2020-08-18 10:36:26 +01:00
parent c50fb4f317
commit 9664ff15ac

View File

@ -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;