Ticket #3333: fix g_error_new_valist().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
ginggs 2014-12-10 09:15:52 +03:00 committed by Andrew Borodin
parent 77a45cdafb
commit 8c1c48f61e

View File

@ -153,9 +153,7 @@ g_error_new_valist (GQuark domain, gint code, const gchar * format, va_list args
char *message;
GError *ret_value;
va_start (ap, format);
message = g_strdup_vprintf (format, ap);
va_end (ap);
message = g_strdup_vprintf (format, args);
ret_value = g_error_new_literal (domain, code, message);
g_free (message);