diff --git a/i3lock.c b/i3lock.c index d5b269d..2d1cad2 100644 --- a/i3lock.c +++ b/i3lock.c @@ -1825,7 +1825,7 @@ int main(int argc, char *argv[]) { image_path, cairo_status_to_string(cairo_surface_status(img))); img = NULL; } - } else { + } else if (image_path != NULL) { /* Path to a directory is provided -> use slideshow mode */ load_slideshow_images(image_path); }