Skip to content

Commit 7cc34f7

Browse files
committedApr 22, 2024
Fix CLI memory stats output
1 parent f227746 commit 7cc34f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎qjs.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,13 @@ int main(int argc, char **argv)
371371
continue;
372372
}
373373
if (opt == 'd' || !strcmp(longopt, "dump")) {
374+
dump_memory++;
374375
if (opt_arg) {
375376
dump_flags = strtol(opt_arg, NULL, 16);
376377
break;
378+
} else {
379+
continue;
377380
}
378-
dump_memory++;
379-
continue;
380381
}
381382
if (opt == 'T' || !strcmp(longopt, "trace")) {
382383
trace_memory++;

0 commit comments

Comments
 (0)