Avoid var declaration after statement.

2003-07-09  Morten Welinder  <terra@gnome.org>

	* glib/gprintf.c (g_vasprintf): Avoid var declaration after
	statement.
This commit is contained in:
Morten Welinder 2003-07-09 19:32:16 +00:00 committed by Morten Welinder
parent ddf64dc40f
commit 27b50b6d43
7 changed files with 37 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2003-07-09 Morten Welinder <terra@gnome.org>
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
statement.
2003-07-09 Matthias Clasen <maclas@gmx.de>
Support for one-time initialization functions. (#69668, Sebastian Wilhelmi)

View File

@ -1,3 +1,8 @@
2003-07-09 Morten Welinder <terra@gnome.org>
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
statement.
2003-07-09 Matthias Clasen <maclas@gmx.de>
Support for one-time initialization functions. (#69668, Sebastian Wilhelmi)

View File

@ -1,3 +1,8 @@
2003-07-09 Morten Welinder <terra@gnome.org>
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
statement.
2003-07-09 Matthias Clasen <maclas@gmx.de>
Support for one-time initialization functions. (#69668, Sebastian Wilhelmi)

View File

@ -1,3 +1,8 @@
2003-07-09 Morten Welinder <terra@gnome.org>
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
statement.
2003-07-09 Matthias Clasen <maclas@gmx.de>
Support for one-time initialization functions. (#69668, Sebastian Wilhelmi)

View File

@ -1,3 +1,8 @@
2003-07-09 Morten Welinder <terra@gnome.org>
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
statement.
2003-07-09 Matthias Clasen <maclas@gmx.de>
Support for one-time initialization functions. (#69668, Sebastian Wilhelmi)

View File

@ -1,3 +1,8 @@
2003-07-09 Morten Welinder <terra@gnome.org>
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
statement.
2003-07-09 Matthias Clasen <maclas@gmx.de>
Support for one-time initialization functions. (#69668, Sebastian Wilhelmi)

View File

@ -302,14 +302,16 @@ g_vasprintf (gchar **string,
*string = string1;
}
#else
va_list args2;
{
va_list args2;
G_VA_COPY (args2, args);
G_VA_COPY (args2, args);
*string = g_new (gchar, g_printf_string_upper_bound (format, args));
*string = g_new (gchar, g_printf_string_upper_bound (format, args));
len = _g_vsprintf (*string, format, args2);
va_end (args2);
len = _g_vsprintf (*string, format, args2);
va_end (args2);
}
#endif
return len;