Merge pull request #2 from jgriebler/master

Actually fix segfault :)
This commit is contained in:
Andrew Krasichkov 2016-10-13 21:59:29 +03:00 committed by GitHub
commit ad2aef6606

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;
} }