projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
682bf79
)
gdbus: Remove not needed NULL pointer checks
author
Szymon Janc
<szymon.janc@tieto.com>
Wed, 21 Nov 2012 10:21:03 +0000
(11:21 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 26 Nov 2012 11:59:48 +0000
(12:59 +0100)
g_strdup returns NULL if argument passed is NULL and there is no need
to double check that.
gdbus/watch.c
patch
|
blob
|
history
diff --git
a/gdbus/watch.c
b/gdbus/watch.c
index
07feb61
..
1cd1211
100644
(file)
--- a/
gdbus/watch.c
+++ b/
gdbus/watch.c
@@
-240,8
+240,8
@@
proceed:
data = g_new0(struct filter_data, 1);
data->connection = dbus_connection_ref(connection);
- data->name =
name ? g_strdup(name) : NULL
;
- data->owner =
owner ? g_strdup(owner) : NULL
;
+ data->name =
g_strdup(name)
;
+ data->owner =
g_strdup(owner)
;
data->path = g_strdup(path);
data->interface = g_strdup(interface);
data->member = g_strdup(member);