fixed seg fault if no file or directory path is provided
This commit is contained in:
parent
74e6dfe497
commit
c28c13990b
2
i3lock.c
2
i3lock.c
|
@ -1825,7 +1825,7 @@ int main(int argc, char *argv[]) {
|
||||||
image_path, cairo_status_to_string(cairo_surface_status(img)));
|
image_path, cairo_status_to_string(cairo_surface_status(img)));
|
||||||
img = NULL;
|
img = NULL;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (image_path != NULL) {
|
||||||
/* Path to a directory is provided -> use slideshow mode */
|
/* Path to a directory is provided -> use slideshow mode */
|
||||||
load_slideshow_images(image_path);
|
load_slideshow_images(image_path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue