diff options
author | Joe <bousset.rudy@gmail.com> | 2022-07-14 15:03:57 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-07-14 15:03:57 +0200 |
commit | e95c48a6023ce31f83d01387fcca8dcaafb81b5c (patch) | |
tree | 8cf0387f7f25360fbf089ac23c19036dc99c6fc1 /src/c_mpdview.c | |
parent | Not bad (diff) | |
download | mpdview-e95c48a6023ce31f83d01387fcca8dcaafb81b5c.tar.gz mpdview-e95c48a6023ce31f83d01387fcca8dcaafb81b5c.tar.bz2 mpdview-e95c48a6023ce31f83d01387fcca8dcaafb81b5c.tar.xz mpdview-e95c48a6023ce31f83d01387fcca8dcaafb81b5c.tar.zst mpdview-e95c48a6023ce31f83d01387fcca8dcaafb81b5c.zip |
update
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"); |