From f6f4c79d17e60d3fa529e3a140d1e87b638c512d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 10 Oct 2019 09:28:32 +0200 Subject: this is condition, not loop --- udev-block-notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev-block-notify.c b/udev-block-notify.c index 34604af..c79c746 100644 --- a/udev-block-notify.c +++ b/udev-block-notify.c @@ -294,7 +294,7 @@ int main (int argc, char ** argv) { notify_notification_update(notification, TEXT_TOPIC, notifystr, icon); notify_notification_set_timeout(notification, notification_timeout); - 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-54-g00ecf