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.
This commit is contained in:
Szymon Janc 2012-11-21 11:21:03 +01:00 committed by Marcel Holtmann
parent 682bf79a83
commit c091a5c5e7
1 changed files with 2 additions and 2 deletions

View File

@ -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);