diff --git a/notification.c b/notification.c index 0ae12af..cc05ce2 100644 --- a/notification.c +++ b/notification.c @@ -448,7 +448,7 @@ int notification_init(notification * n, int id) n->timeout == -1 ? settings.timeouts[n->urgency] : n->timeout; n->start = 0; - if (strlen(n->icon) <= 0) { + if (n->icon != NULL && strlen(n->icon) <= 0) { free(n->icon); n->icon = NULL; }