fix/sigsegv-due-to-null-notification-category

This commit is contained in:
Bernard Nauwelaerts 2016-09-02 14:05:24 +02:00
parent 94eecd6b3b
commit bd84bcb70d

View File

@ -335,6 +335,10 @@ int notification_init(notification * n, int id)
n->format = settings.format;
if (n->category == NULL) {
n->category = "";
}
rule_apply_all(n);
n->urls = notification_extract_markup_urls(&(n->body));
@ -450,10 +454,6 @@ int notification_init(notification * n, int id)
n->icon = strdup(settings.icons[n->urgency]);
}
if (n->category == NULL) {
n->category = "";
}
n->timestamp = time(NULL);
n->redisplayed = false;