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;
