Prevent segfault in certain conditions when displaying debug message.
authorLaurent Monin <geeqie@norz.org>
Sat, 5 Jul 2008 10:21:09 +0000 (10:21 +0000)
committerLaurent Monin <geeqie@norz.org>
Sat, 5 Jul 2008 10:21:09 +0000 (10:21 +0000)
src/thumb_standard.c

index 6d6c1d0..f9d1fb5 100644 (file)
@@ -541,7 +541,7 @@ static void thumb_loader_std_done_cb(ImageLoader *il, gpointer data)
        ThumbLoaderStd *tl = data;
        GdkPixbuf *pixbuf;
 
-       DEBUG_1("thumb image done: %s", tl->fd->path);
+       DEBUG_1("thumb image done: %s", tl->fd ? tl->fd->path : "???");
        DEBUG_1("            from: %s", tl->il->path);
 
        pixbuf = image_loader_get_pixbuf(tl->il);