Mercurial > hg > forks > geeqie
changeset 959:3ec42efa6958
fixed crash in geeqie --blank
author | Vladimir Nadvornik <nadvornik@suse.cz> |
---|---|
date | Mon, 11 Aug 2008 18:53:19 +0000 |
parents | 9125cd4f0faf |
children | 066f98cba001 |
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;