all repos — mgba @ 747e30c5e1b9ab5d2ff6adbbbb119aff4f802bab

mGBA Game Boy Advance Emulator

Fix perf-main parsing when errno is not cleared
Jeffrey Pfau jeffrey@endrift.com
Thu, 09 Oct 2014 03:43:51 -0700
commit

747e30c5e1b9ab5d2ff6adbbbb119aff4f802bab

parent

8ae1a3a3a3d385d416def2e63b356310d63fcf3f

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/platform/perf-main.csrc/platform/perf-main.c

@@ -149,6 +149,7 @@ }

static bool _parsePerfOpts(struct SubParser* parser, int option, const char* arg) { struct PerfOpts* opts = parser->opts; + errno = 0; switch (option) { case 'F': opts->frames = strtoul(arg, 0, 10);