aboutsummaryrefslogtreecommitdiffstats
path: root/mpd-notification.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-10-10 09:29:13 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-10-10 09:29:13 +0200
commite43f979227f0be7df371ed56764b9555b31a505f (patch)
tree90cee78f3da25381562021102b84aee5d629562b /mpd-notification.c
parent1f90c40b2b026d8d2b26e13ef1fee4a8fe96b532 (diff)
downloadmpd-notification-e43f979227f0be7df371ed56764b9555b31a505f.tar.gz
mpd-notification-e43f979227f0be7df371ed56764b9555b31a505f.tar.zst
this is condition, not loop
Diffstat (limited to 'mpd-notification.c')
-rw-r--r--mpd-notification.c2
1 files changed, 1 insertions, 1 deletions
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);