From 1e2a59ffd680bcecd51e2d5d1760df407a6f5081 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Mon, 18 Nov 2024 18:36:26 +0300 Subject: [PATCH] main.c: do not allocate space for a pointer to `argv[i]` --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 46d2352..2a5b28e 100644 --- a/src/main.c +++ b/src/main.c @@ -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 } }