:: commit 225edec61fdc6383859aa8313d56ec38cdfb5490

chloeeeS <68156310+chloeeeS@users.noreply.github.com> — 2022-07-13 07:28

parents: 47913c79fb

fixed segfault when no arguments are specified (#37)

diff --git a/src/main.c b/src/main.c
index 51f83cd..106b4f7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,7 +31,7 @@
 #endif
 
 /* Use our own getopt implementation. */
-static int opind;
+static int opind = 1;
 static int operr = 1;
 static int opopt;
 static char *oparg;
tab: 248 wrap: offon