mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
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:
parent
ddf64dc40f
commit
27b50b6d43
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user