Fix missing check for "-c" to terminate argument parsing

Arguments to CLI commands could accidentally enable guarded allocator
when using "-c" instead of "--command".
This commit is contained in:
Campbell Barton
2024-09-06 10:38:02 +10:00
parent 8febf15ea5
commit 73ac0275c6

View File

@@ -349,7 +349,7 @@ int main(int argc,
MEM_use_guarded_allocator();
break;
}
if (STR_ELEM(argv[i], "--", "--command")) {
if (STR_ELEM(argv[i], "--", "-c", "--command")) {
break;
}
}