fix/sigsegv-due-to-null-notification-category
This commit is contained in:
parent
94eecd6b3b
commit
bd84bcb70d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user