Skip to content
Snippets Groups Projects
Commit d27e35f2 authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by Tom Rini
Browse files

relocate-rela: add missing va_end()


va_start must always be matched by va_end.

The problem was indicated by cppcheck.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 05d887b4
No related branches found
No related tags found
No related merge requests found
...@@ -27,9 +27,11 @@ static void debug(const char *fmt, ...) ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment