* grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
(grub_xvasprintf): Likewise.
This commit is contained in:
parent
d35d0d3753
commit
c1860f878b
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
|
||||
(grub_xvasprintf): Likewise.
|
||||
|
||||
2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Add const keyword to grub_env_get and gettextize week days.
|
||||
|
|
|
@ -216,6 +216,8 @@ grub_vprintf (const char *fmt, va_list args)
|
|||
s = grub_vsnprintf_real (curbuf, s, fmt, ap2);
|
||||
}
|
||||
|
||||
va_end (ap2);
|
||||
|
||||
grub_xputs (curbuf);
|
||||
|
||||
if (curbuf != buf)
|
||||
|
@ -911,6 +913,9 @@ grub_xvasprintf (const char *fmt, va_list ap)
|
|||
return NULL;
|
||||
|
||||
s = grub_vsnprintf_real (ret, as, fmt, ap2);
|
||||
|
||||
va_end (ap2);
|
||||
|
||||
if (s <= as)
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Reference in a new issue