Mercurial > geeqie.yaz
comparison src/layout.c @ 959:9791230f83d3
fixed crash in geeqie --blank
author | nadvornik |
---|---|
date | Mon, 11 Aug 2008 18:53:19 +0000 |
parents | c414002a1f27 |
children | 37fdfe8f2ab1 |
comparison
equal
deleted
inserted
replaced
958:419fe0574a34 | 959:9791230f83d3 |
---|---|
913 if (lw->vf) vf_set_fd(lw->vf, lw->dir_fd); | 913 if (lw->vf) vf_set_fd(lw->vf, lw->dir_fd); |
914 } | 914 } |
915 | 915 |
916 gint layout_set_path(LayoutWindow *lw, const gchar *path) | 916 gint layout_set_path(LayoutWindow *lw, const gchar *path) |
917 { | 917 { |
918 FileData *fd = file_data_new_simple(path); | 918 FileData *fd; |
919 if (!path) return FALSE; | |
920 fd = file_data_new_simple(path); | |
919 gint ret = layout_set_fd(lw, fd); | 921 gint ret = layout_set_fd(lw, fd); |
920 file_data_unref(fd); | 922 file_data_unref(fd); |
921 return ret; | 923 return ret; |
922 } | 924 } |
923 | 925 |