diff --git a/notification.c b/notification.c index 5e0a82f..02f58db 100644 --- a/notification.c +++ b/notification.c @@ -385,11 +385,11 @@ int notification_init(notification * n, int id) n->start = 0; if (n->icon == NULL) { - n->icon = settings.icons[n->urgency]; + n->icon = strdup(settings.icons[n->urgency]); } else if (strlen(n->icon) <= 0) { free(n->icon); - n->icon = settings.icons[n->urgency]; + n->icon = strdup(settings.icons[n->urgency]); } if (n->category == NULL) {