projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
339cac8
)
Avoid a deref-before-NULL-check warning
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Jun 2011 14:04:06 +0000
(10:04 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Jun 2011 14:04:06 +0000
(10:04 -0400)
gio/gdbusaddress.c
patch
|
blob
|
history
diff --git
a/gio/gdbusaddress.c
b/gio/gdbusaddress.c
index
642aa2d
..
f0cb1b6
100644
(file)
--- a/
gio/gdbusaddress.c
+++ b/
gio/gdbusaddress.c
@@
-944,7
+944,7
@@
g_dbus_address_get_stream_sync (const gchar *address,
last_error = NULL;
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,
G_IO_ERROR_INVALID_ARGUMENT,