Actually fix segfault

This commit is contained in:
Johannes M. Griebler 2016-10-13 20:51:49 +02:00
parent 1c1d173379
commit 9e80de6153

View File

@ -448,7 +448,7 @@ int notification_init(notification * n, int id)
n->timeout == -1 ? settings.timeouts[n->urgency] : n->timeout; n->timeout == -1 ? settings.timeouts[n->urgency] : n->timeout;
n->start = 0; n->start = 0;
if (strlen(n->icon) <= 0) { if (n->icon != NULL && strlen(n->icon) <= 0) {
free(n->icon); free(n->icon);
n->icon = NULL; n->icon = NULL;
} }