Skip alloc for argv loading

This commit is contained in:
neauoire 2023-11-29 17:23:26 -08:00
parent 25aee2e590
commit 0eec711321
1 changed files with 3 additions and 3 deletions

View File

@ -646,12 +646,12 @@ main(int argc, char **argv)
for(i = 1; i < argc; i++) {
Varvara *a;
if(argv[i][0] == '-') {
a = order_push(setvv(allocvv(), anchor, 0, argv[++i], 1));
a = order_push(setvv(i, anchor, 0, argv[++i], 1));
a->lock = 1;
continue;
}
a = order_push(setvv(allocvv(), anchor + 0x10, 0x10, argv[i], 1));
anchor += a->screen.w + 0x20;
a = order_push(setvv(i, anchor + 0x10, 0x10, argv[i], 1));
anchor += a->screen.w + 0x10;
}
/* event loop */
while(1) {