Mercurial > hg > forks > geeqie
changeset 881:eb2e2dac4517
Prevent segfault in certain conditions when displaying debug message.
author | Laurent Monin <geeqie@norz.org> |
---|---|
date | Sat, 05 Jul 2008 10:21:09 +0000 |
parents | fec28f3cdc48 |
children | aa30aecdd74f |
files | src/thumb_standard.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);