allow multiple -m

This commit is contained in:
vanhauser-thc
2024-06-09 12:02:59 +02:00
parent 74e264a20a
commit 5331eca5d9

View File

@ -915,9 +915,16 @@ int main(int argc, char **argv_orig, char **envp) {
u8 suffix = 'M';
if (mem_limit_given) { FATAL("Multiple -m options not supported"); }
if (mem_limit_given) {
WARNF("Overriding previous -m option.");
} else {
mem_limit_given = 1;
}
if (!optarg) { FATAL("Wrong usage of -m"); }
if (!strcmp(optarg, "none")) {