gdbus: Use g_dbus_create_error_valist internally

There is no need to duplicate code in g_dbus_send_error_valist.
This commit is contained in:
Szymon Janc 2015-04-07 21:57:19 +02:00 committed by Marcel Holtmann
parent 73e517bcca
commit 2f75b13ecd
1 changed files with 1 additions and 4 deletions

View File

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