summaryrefslogtreecommitdiffstats
path: root/gdbus
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2012-11-21 11:21:03 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-11-26 12:59:48 +0100
commitc091a5c5e7b1bb74f0a9e0033e3027d373420a1e (patch)
tree6db62bb647f8403eb87245e38c951a4e75ce7c21 /gdbus
parent682bf79a83966f031b60a6052556b12d0b3cf190 (diff)
downloadofono-c091a5c5e7b1bb74f0a9e0033e3027d373420a1e.tar.bz2
gdbus: Remove not needed NULL pointer checks
g_strdup returns NULL if argument passed is NULL and there is no need to double check that.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/watch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbus/watch.c b/gdbus/watch.c
index 07feb619..1cd12118 100644
--- 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);