i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit c28c13990be983baf4d540157ea5fa1d0621fb73
parent 74e6dfe497d1f8729759d0f264039978c0df3145
Author: Thomas Osterland <t.osterland@web.de>
Date:   Thu, 22 Mar 2018 08:02:20 +0100

fixed seg fault if no file or directory path is provided

Diffstat:
Mi3lock.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);
     }