...and in preparation for the merge-config patch, avoid building
directory lists for empty filenames.
wlr_buffer_drop(&(*buffer)->base);
*buffer = NULL;
}
+ if (!button_name || !*button_name) {
+ return;
+ }
char path[4096] = { 0 };
button_filename(button_name, path, sizeof(path));
wlr_buffer_drop(&(*buffer)->base);
*buffer = NULL;
}
+ if (!button_name || !*button_name) {
+ return;
+ }
char filename[4096] = { 0 };
button_filename(button_name, filename, sizeof(filename));
wlr_buffer_drop(&(*buffer)->base);
*buffer = NULL;
}
+ if (!button_name || !*button_name) {
+ return;
+ }
color = argb32(rgba);
/* Read file into memory as it's easier to tokenize that way */