mirror of https://github.com/mgba-emu/mgba.git
Fix perf-main parsing when errno is not cleared
This commit is contained in:
parent
8ae1a3a3a3
commit
747e30c5e1
|
@ -149,6 +149,7 @@ static void _GBAPerfShutdown(int signal) {
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue