Mercurial > geeqie.yaz
changeset 959:9791230f83d3
fixed crash in geeqie --blank
author | nadvornik |
---|---|
date | Mon, 11 Aug 2008 18:53:19 +0000 |
parents | 419fe0574a34 |
children | 37fdfe8f2ab1 |
files | src/layout.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout.c Mon Aug 11 17:45:26 2008 +0000 +++ b/src/layout.c Mon Aug 11 18:53:19 2008 +0000 @@ -915,7 +915,9 @@ gint layout_set_path(LayoutWindow *lw, const gchar *path) { - FileData *fd = file_data_new_simple(path); + FileData *fd; + if (!path) return FALSE; + fd = file_data_new_simple(path); gint ret = layout_set_fd(lw, fd); file_data_unref(fd); return ret;