mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Ticket #3333: fix g_error_new_valist().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
77a45cdafb
commit
8c1c48f61e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user