summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-07-14 15:03:57 +0200
committerJoe <bousset.rudy@gmail.com>2022-07-14 15:03:57 +0200
commite95c48a6023ce31f83d01387fcca8dcaafb81b5c (patch)
tree8cf0387f7f25360fbf089ac23c19036dc99c6fc1
parentNot bad (diff)
downloadmpdview-e95c48a6023ce31f83d01387fcca8dcaafb81b5c.tar.gz
mpdview-e95c48a6023ce31f83d01387fcca8dcaafb81b5c.tar.bz2
mpdview-e95c48a6023ce31f83d01387fcca8dcaafb81b5c.tar.xz
mpdview-e95c48a6023ce31f83d01387fcca8dcaafb81b5c.tar.zst
mpdview-e95c48a6023ce31f83d01387fcca8dcaafb81b5c.zip
update
-rw-r--r--src/c_mpdview.c4
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");