summaryrefslogtreecommitdiffstats
path: root/gdbus
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2015-04-07 21:57:19 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-04-09 16:59:08 +0200
commit2f75b13ecd9e5711c9c26776e394d655e8ba72fe (patch)
treeef51107eebf9795efc605ced65cab857bb5c8e86 /gdbus
parent73e517bcca8732c1498d0f48c49d7f31bfb64aca (diff)
downloadofono-2f75b13ecd9e5711c9c26776e394d655e8ba72fe.tar.bz2
gdbus: Use g_dbus_create_error_valist internally
There is no need to duplicate code in g_dbus_send_error_valist.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/object.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdbus/object.c b/gdbus/object.c
index b62c062a..0f42dadf 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -1530,11 +1530,8 @@ gboolean g_dbus_send_error_valist(DBusConnection *connection,
const char *format, va_list args)
{
DBusMessage *error;
- char str[1024];
-
- vsnprintf(str, sizeof(str), format, args);
- error = dbus_message_new_error(message, name, str);
+ error = g_dbus_create_error_valist(message, name, format, args);
if (error == NULL)
return FALSE;