diff options
Diffstat (limited to 'src/c_mpdview.c')
-rw-r--r-- | src/c_mpdview.c | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |