mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
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:
parent
c50fb4f317
commit
9664ff15ac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user