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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user