[hackers] [quark][PATCH 4/7] arg.h: clean ref for argv[1] element

From: Nikita Zlobin <nick87720z_AT_gmail.com>
Date: Sun, 4 Jul 2021 20:54:56 +0500

---
 arg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arg.h b/arg.h
index ba3e34a..1c2757f 100644
--- a/arg.h
+++ b/arg.h
_AT_@ -46,7 +46,7 @@ extern char *argv0;
                  }
 #define ARGC()   ((*argv)[i_])
 #define ARGF_(x) (((*argv)[i_ + 1]) ? (argused_ = 1, &((*argv)[i_ + 1])) :        \
-                  (*(argv + 1))     ? (argused_ = 1, *(argv + 1))        : (x))
+                  (argv[1])     ? (argused_ = 1, argv[1])        : (x))
 #define EARGF(x) ARGF_(((x), exit(1), NULL))
 #define ARGF()   ARGF_(NULL)
 
-- 
2.31.1
Received on Sun Jul 04 2021 - 17:54:56 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 04 2021 - 18:00:33 CEST