summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2009-03-17 11:21:56 (GMT)
committerSjoerd Simons <sjoerd@luon.net>2009-03-17 11:21:56 (GMT)
commitbc474819fa638a0daf3c89e6d041949b73e9228e (patch)
treee6ee1acb8013c18fcc87736c8341a90f6f9eedbb
parentdfef72c61c050e7f57e1d2eb601701e0a27827cc (diff)
downloaddbus-glib-master.tar.gz
dbus-glib-master.tar.xz
Use g_strdup instead of strdup in dbus_g_method_get_senderHEADmaster
-rw-r--r--dbus/dbus-gobject.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/dbus/dbus-gobject.c b/dbus/dbus-gobject.c
index 00cf56b..fb92a27 100644
--- a/dbus/dbus-gobject.c
+++ b/dbus/dbus-gobject.c
@@ -2267,11 +2267,7 @@ dbus_g_method_get_sender (DBusGMethodInvocation *context)
const gchar *sender;
sender = dbus_message_get_sender (dbus_g_message_get_message (context->message));
-
- if (sender == NULL)
- return NULL;
-
- return strdup (sender);
+ return g_strdup (sender);
}
/**