From e43f979227f0be7df371ed56764b9555b31a505f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 10 Oct 2019 09:29:13 +0200 Subject: this is condition, not loop --- mpd-notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpd-notification.c b/mpd-notification.c index 9796a7d..2ba710f 100644 --- a/mpd-notification.c +++ b/mpd-notification.c @@ -482,7 +482,7 @@ int main(int argc, char ** argv) { /* Call this unconditionally! When pixbuf is NULL this clears old image. */ notify_notification_set_image_from_pixbuf(notification, pixbuf); - while(notify_notification_show(notification, &error) == FALSE) { + if (notify_notification_show(notification, &error) == FALSE) { g_printerr("%s: Error showing notification: %s\n", program, error->message); g_error_free(error); -- cgit v1.2.3-70-g09d2