aboutsummaryrefslogtreecommitdiffstats
path: root/cursor
diff options
context:
space:
mode:
Diffstat (limited to 'cursor')
-rw-r--r--cursor/xcursor.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/cursor/xcursor.c b/cursor/xcursor.c
index dcebaee..2caa2d6 100644
--- a/cursor/xcursor.c
+++ b/cursor/xcursor.c
@@ -818,19 +818,14 @@ xcursor_load_theme(const char *theme, int size,
continue;
full = xcursor_build_fullname(dir, "cursors", "");
-
- if (full) {
- load_all_cursors_from_dir(full, size, load_callback,
- user_data);
- free(full);
- }
+ load_all_cursors_from_dir(full, size, load_callback,
+ user_data);
+ free(full);
if (!inherits) {
full = xcursor_build_fullname(dir, "", "index.theme");
- if (full) {
- inherits = xcursor_theme_inherits(full);
- free(full);
- }
+ inherits = xcursor_theme_inherits(full);
+ free(full);
}
free(dir);