mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 22:59:16 +02:00
Avoid a deref-before-NULL-check warning
This commit is contained in:
parent
339cac8fc7
commit
3dc34de0ff
@ -944,7 +944,7 @@ g_dbus_address_get_stream_sync (const gchar *address,
|
|||||||
last_error = NULL;
|
last_error = NULL;
|
||||||
|
|
||||||
addr_array = g_strsplit (address, ";", 0);
|
addr_array = g_strsplit (address, ";", 0);
|
||||||
if (addr_array[0] == NULL)
|
if (addr_array != NULL && addr_array[0] == NULL)
|
||||||
{
|
{
|
||||||
last_error = g_error_new_literal (G_IO_ERROR,
|
last_error = g_error_new_literal (G_IO_ERROR,
|
||||||
G_IO_ERROR_INVALID_ARGUMENT,
|
G_IO_ERROR_INVALID_ARGUMENT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user