diff --git a/daemon/yasnd.c b/daemon/yasnd.c index cca3289..368dba9 100644 --- a/daemon/yasnd.c +++ b/daemon/yasnd.c @@ -385,7 +385,7 @@ void arg_parse(int argc, char *argv[]) { {"init", no_argument, NULL, 'i'}, }; - while ((c = getopt_long(argc, argv,"i", option_string, NULL)) != 0) + while ((c = getopt_long(argc, argv,"i", option_string, NULL)) != -1) { switch(c) {