diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2017-05-03 22:40:11 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-05 16:45:57 -0400 |
commit | d27e35f2564f751a3cc47daa5ab9897f04401a40 (patch) | |
tree | a3c91837a4c7955584341a1d4ad4b5219f37b89f /tools/relocate-rela.c | |
parent | 05d887b4619e54a2b7d487ac1c31b4544ce58533 (diff) |
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>
Diffstat (limited to 'tools/relocate-rela.c')
-rw-r--r-- | tools/relocate-rela.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c index 3c9d134ac2..df968eb5fd 100644 --- a/tools/relocate-rela.c +++ b/tools/relocate-rela.c @@ -27,9 +27,11 @@ static void debug(const char *fmt, ...) { va_list args; - va_start(args, fmt); - if (debug_en) + if (debug_en) { + va_start(args, fmt); vprintf(fmt, args); + va_end(args); + } } static bool supported_rela(Elf64_Rela *rela) |