Fix CLI memory stats output
This commit is contained in:
parent
840ce4e719
commit
2050bc782a
1 changed files with 4 additions and 4 deletions
8
qjs.c
8
qjs.c
|
@ -371,13 +371,13 @@ int main(int argc, char **argv)
|
|||
continue;
|
||||
}
|
||||
if (opt == 'd' || !strcmp(longopt, "dump")) {
|
||||
if (opt_arg) {
|
||||
dump_flags = strtol(opt_arg, NULL, 16);
|
||||
break;
|
||||
}
|
||||
dump_memory++;
|
||||
continue;
|
||||
}
|
||||
if (opt == 'D' || !strcmp(longopt, "dump-flags")) {
|
||||
dump_flags = opt_arg ? strtol(opt_arg, NULL, 16) : 0;
|
||||
break;
|
||||
}
|
||||
if (opt == 'T' || !strcmp(longopt, "trace")) {
|
||||
trace_memory++;
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue