Introduction
Introduction Statistics Contact Development Disclaimer Help
Minor style change in arg.h - farbfeld - suckless image format with conversion …
git clone git://git.suckless.org/farbfeld
Log
Files
Refs
README
LICENSE
---
commit 37e44c95655e252aa7763671f53524dceaf8a65b
parent 31651271e1afd99983fb3d0ec51a273e31aaf4e9
Author: Laslo Hunhold <[email protected]>
Date: Wed, 2 Aug 2017 08:36:28 +0200
Minor style change in arg.h
We decrement argc first before incrementing argv, so we never have a
state where we potentially point to uncharted territory.
Diffstat:
M arg.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/arg.h b/arg.h
@@ -22,7 +22,7 @@
extern char *argv0;
/* int main(int argc, char *argv[]) */
-#define ARGBEGIN for (argv0 = *argv, argv++, argc--; …
+#define ARGBEGIN for (argv0 = *argv, argc--, argv++; …
*argv && (*argv)[0] == '-' && (*argv)[1]; argc--, argv++…
int argparsed; …
if ((*argv)[1] == '-' && (*argv)[2] == '\0') { …
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.