From e95c48a6023ce31f83d01387fcca8dcaafb81b5c Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 14 Jul 2022 15:03:57 +0200 Subject: update --- src/c_mpdview.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/c_mpdview.c b/src/c_mpdview.c index 1fd0d98..77d1eec 100644 --- a/src/c_mpdview.c +++ b/src/c_mpdview.c @@ -191,7 +191,9 @@ main bool_t verbose; verbose = FALSE; - while ((c = getopt(argc, argv, OPTSTRING)) != -1) { + c = 0; + while (c != -1) { + c = getopt(argc, argv, OPTSTRING); if (c == 'h') { /* TODO: usage(); */ dprintf(STDOUT_FILENO, "help\n"); -- cgit v1.2.3