mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +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);
|
formatStr.deleteChar(0);
|
||||||
|
|
||||||
safeRead(&c, 1);
|
safeRead(&c, 1);
|
||||||
if (!Common::isSpace(c))
|
if (!Common::isSpace(c)) {
|
||||||
|
va_end(va);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Skip over whitespaces
|
// Skip over whitespaces
|
||||||
skipSpaces();
|
skipSpaces();
|
||||||
|
Loading…
Reference in New Issue
Block a user