mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 23:52:41 +00:00
52ebc0da38
- endptr needs not be initialised before calling strtol(), it is always set by strtol(). - endptr is never a null pointer after calling strtol(). - There is no need to rely on strtol() setting EINVAL (which is not guaranteed). Testing whether strtol() parsed till the end of the string is sufficient (it is guaranteed that the string is not empty at this point). - It is sufficient to just test for ERANGE without inspecting the return value, because a successful call to strtol() does not change errno. Signed-off-by: Alyssa Milburn <fuzzie@fuzzie.org> |
||
---|---|---|
.. | ||
commandLine.cpp | ||
commandLine.h | ||
internal_revision.h.in | ||
internal_version.h | ||
internal_version.h.in | ||
main.cpp | ||
main.h | ||
module.mk | ||
plugins.cpp | ||
plugins.h | ||
version.cpp | ||
version.h |