mirror of
https://github.com/NickHu/sway
synced 2025-01-27 07:58:27 +01:00
Fix a crash in swaybar when an icon dir is not readable
This commit is contained in:
parent
2cae0d5e3a
commit
31eeda11b0
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ void init_themes(list_t **themes, list_t **basedirs) {
|
||||||
*themes = create_list();
|
*themes = create_list();
|
||||||
for (int i = 0; i < (*basedirs)->length; ++i) {
|
for (int i = 0; i < (*basedirs)->length; ++i) {
|
||||||
list_t *dir_themes = load_themes_in_dir((*basedirs)->items[i]);
|
list_t *dir_themes = load_themes_in_dir((*basedirs)->items[i]);
|
||||||
|
if (dir_themes == NULL) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
list_cat(*themes, dir_themes);
|
list_cat(*themes, dir_themes);
|
||||||
list_free(dir_themes);
|
list_free(dir_themes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue