Advertisement
Guest User

Untitled

a guest
May 25th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. --- a/notification.c
  2. +++ b/notification.c
  3. @@ -443,11 +443,11 @@ int notification_init(notification * n, int id)
  4. n->start = 0;
  5.  
  6. if (n->icon == NULL) {
  7. - n->icon = strdup(settings.icons[n->urgency]);
  8. - }
  9. - else if (strlen(n->icon) <= 0) {
  10. - free(n->icon);
  11. - n->icon = strdup(settings.icons[n->urgency]);
  12. + n->icon = "";
  13. + }
  14. + else if (strlen(n->icon) < 0) {
  15. + free(n->icon);
  16. + n->icon = "";
  17. }
  18.  
  19. if (n->category == NULL) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement