Skip to content

Commit

Permalink
Test for empty filename in addition to no filename
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23269 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
gjanssens committed Oct 7, 2013
1 parent d9d754b commit ebedd85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gnome-utils/gnc-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,9 @@ gnc_post_file_open (const char * filename, gboolean is_readonly)
gint32 port = 0;


ENTER(" ");
ENTER("filename %s", filename);
RESTART:
if (!filename) return FALSE;
if (!filename || (*filename == '\0')) return FALSE;

/* Convert user input into a normalized uri
* Note that the normalized uri for internal use can have a password */
Expand Down

0 comments on commit ebedd85

Please sign in to comment.