Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/notification.c
- +++ b/notification.c
- @@ -443,11 +443,11 @@ int notification_init(notification * n, int id)
- n->start = 0;
- if (n->icon == NULL) {
- - n->icon = strdup(settings.icons[n->urgency]);
- - }
- - else if (strlen(n->icon) <= 0) {
- - free(n->icon);
- - n->icon = strdup(settings.icons[n->urgency]);
- + n->icon = "";
- + }
- + else if (strlen(n->icon) < 0) {
- + free(n->icon);
- + n->icon = "";
- }
- if (n->category == NULL) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement