diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-03-30 13:01:38 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-03-30 13:01:38 -0500 |
| commit | 85299073a6fa2d08a9b6c7df0e9a679a2d1f827b (patch) | |
| tree | f83994974aa44af622bf719275f49dd01253b414 /swaybar/tray | |
| parent | 6ee16ccc959ba684730c961d5b3ac5101b18061f (diff) | |
Fix a crash in swaybar when an icon dir is not readable
Diffstat (limited to 'swaybar/tray')
| -rw-r--r-- | swaybar/tray/icon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/swaybar/tray/icon.c b/swaybar/tray/icon.c index 8587f3f7..56f230e1 100644 --- a/swaybar/tray/icon.c +++ b/swaybar/tray/icon.c @@ -348,6 +348,9 @@ void init_themes(list_t **themes, list_t **basedirs) { *themes = create_list(); for (int i = 0; i < (*basedirs)->length; ++i) { list_t *dir_themes = load_themes_in_dir((*basedirs)->items[i]); + if (dir_themes == NULL) { + continue; + } list_cat(*themes, dir_themes); list_free(dir_themes); } |
