mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-28 01:22:20 +00:00
relocate-rela: add missing va_end()
va_start must always be matched by va_end. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
05d887b461
commit
d27e35f256
1 changed files with 4 additions and 2 deletions
|
@ -27,9 +27,11 @@ static void debug(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
||||||
va_start(args, fmt);
|
if (debug_en) {
|
||||||
if (debug_en)
|
va_start(args, fmt);
|
||||||
vprintf(fmt, args);
|
vprintf(fmt, args);
|
||||||
|
va_end(args);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool supported_rela(Elf64_Rela *rela)
|
static bool supported_rela(Elf64_Rela *rela)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue