1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-12-27 07:30:23 +05:30

main.c: do not allocate space for a pointer to argv[i]

This commit is contained in:
Intel A80486DX2-66 2024-11-18 18:36:26 +03:00
parent a7985babaa
commit 1e2a59ffd6
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -253,7 +253,7 @@ int main(int argc, char** argv) {
for (int i = 2; i < argc; ++i) {
bool last_arg = i == (argc - 1);
const char* arg = argv[i];
#define arg argv[i]
if (read_off_value) {
parse_value(arg_destination, arg);
@ -288,6 +288,8 @@ int main(int argc, char** argv) {
read_off_value = true;
continue;
}
#undef arg
}
}