From f5c001af5ff4e1a7432f96674ed6ea7ff6b2be5a Mon Sep 17 00:00:00 2001 From: Boris Egorov Date: Mon, 12 Jan 2015 23:52:12 +0600 Subject: [PATCH] pacmd: add missing 'else' keyword See code above for proper behavior. Issue detected by PVS Studio --- src/utils/pacmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/pacmd.c b/src/utils/pacmd.c index 61b87a0ac..7e49296d7 100644 --- a/src/utils/pacmd.c +++ b/src/utils/pacmd.c @@ -333,7 +333,7 @@ int main(int argc, char*argv[]) { if (watch_socket->revents & POLLHUP) { ibuf_eof = true; ibuf_length = 0; - } if (watch_socket->revents & POLLOUT) { + } else if (watch_socket->revents & POLLOUT) { ssize_t r; pa_assert(ibuf_length > 0);