Fix perf-main parsing when errno is not cleared
Jeffrey Pfau jeffrey@endrift.com
Thu, 09 Oct 2014 03:43:51 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/platform/perf-main.c
→
src/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);