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:
parent
a7985babaa
commit
1e2a59ffd6
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user