mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
TITANIC: Add missing va_end() on early return (CppCheck warning)
This commit is contained in:
parent
f738e79e2a
commit
8aeeacf204
@ -424,8 +424,10 @@ bool SimpleFile::scanf(const char *format, ...) {
|
||||
formatStr.deleteChar(0);
|
||||
|
||||
safeRead(&c, 1);
|
||||
if (!Common::isSpace(c))
|
||||
if (!Common::isSpace(c)) {
|
||||
va_end(va);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Skip over whitespaces
|
||||
skipSpaces();
|
||||
|
Loading…
Reference in New Issue
Block a user