mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
swaybar: Use "!ptr" for comparison to NULL
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
This commit is contained in:
parent
a6d761a31c
commit
c71a8b0b7b
4 changed files with 6 additions and 6 deletions
|
|
@ -386,7 +386,7 @@ 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) {
|
||||
if (!dir_themes) {
|
||||
continue;
|
||||
}
|
||||
list_cat(*themes, dir_themes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue