Commit c699743e authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't call va_end on caller-provided va_args. (#353584, Chris Wilson)

2006-08-30  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmarkup.c (g_markup_vprintf_escaped): Don't call
	va_end on caller-provided va_args.  (#353584, Chris Wilson)
parent 90f1fd26
2006-08-30 Matthias Clasen <mclasen@redhat.com>
* glib/gmarkup.c (g_markup_vprintf_escaped): Don't call
va_end on caller-provided va_args. (#353584, Chris Wilson)
2006-08-29 Tor Lillqvist <tml@novell.com>
Remove support for Windows 9x/ME, as will be done also in Pango
......
......@@ -2172,9 +2172,11 @@ g_markup_vprintf_escaped (const char *format,
G_VA_COPY (args2, args);
output1 = g_strdup_vprintf (format1->str, args);
va_end (args);
if (!output1)
goto cleanup;
{
va_end (args2);
goto cleanup;
}
output2 = g_strdup_vprintf (format2->str, args2);
va_end (args2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment