1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2024-11-11 13:50:52 -05:00

moved NULL check

This commit is contained in:
Thomas Osterland 2018-04-07 09:52:12 +02:00
parent b2e296e4fe
commit 9f27a7684f

View file

@ -1840,13 +1840,16 @@ int main(int argc, char *argv[]) {
(uint32_t[]){XCB_EVENT_MASK_STRUCTURE_NOTIFY});
init_colors_once();
if (is_regular_file(image_path)) {
img = load_image(image_path);
} else if (image_path != NULL) {
/* Path to a directory is provided -> use slideshow mode */
load_slideshow_images(image_path);
if (image_path != NULL) {
if (is_regular_file(image_path)) {
img = load_image(image_path);
} else {
/* Path to a directory is provided -> use slideshow mode */
load_slideshow_images(image_path);
}
free(image_path);
}
free(image_path);
xcb_pixmap_t* blur_pixmap = NULL;
if (blur) {