# HG changeset patch # User zas_ # Date 1215253269 0 # Node ID 10d0bf784323a17a64bc8a115fd0e25cda8fe1b0 # Parent 71fc4b084e7e51556444bbaa556ecaa94646bec1 Prevent segfault in certain conditions when displaying debug message. diff -r 71fc4b084e7e -r 10d0bf784323 src/thumb_standard.c --- a/src/thumb_standard.c Fri Jul 04 22:49:04 2008 +0000 +++ b/src/thumb_standard.c Sat Jul 05 10:21:09 2008 +0000 @@ -541,7 +541,7 @@ 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);