gnc_history_get_last() can return NULL.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15098 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/gobject-engine-dev
David Hampton 20 years ago
parent e0cbea3e7a
commit 101c8c4e80

@ -839,7 +839,8 @@ gnc_file_open (void)
lastfile = gnc_history_get_last();
newfile = gnc_file_dialog (_("Open"), NULL, lastfile, GNC_FILE_DIALOG_OPEN);
g_free(lastfile);
if (lastfile)
g_free(lastfile);
result = gnc_post_file_open (newfile);
/* This dialogue can show up early in the startup process. If the

Loading…
Cancel
Save