Fix perf-main parsing when errno is not cleared

This commit is contained in:
Jeffrey Pfau 2014-10-09 03:43:51 -07:00
parent 8ae1a3a3a3
commit 747e30c5e1
1 changed files with 1 additions and 0 deletions

View File

@ -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);