Fix bug when directory doesn't exist in utils_get_file_list().

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1528 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-05-11 17:31:06 +00:00
parent fc92459681
commit 6066c2816f
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,8 @@
Use Windows folder dialog in ui_path_box_open_clicked().
* src/utils.c:
Wrap notebook pages when switching tabs.
* src/utils.c:
Fix bug when directory doesn't exist in utils_get_file_list().
2007-05-10 Nick Treleaven <nick.treleaven@btinternet.com>

View File

@ -1666,7 +1666,7 @@ GSList *utils_get_file_list(const gchar *path, guint *length, GError **error)
g_return_val_if_fail(path != NULL, NULL);
dir = g_dir_open(path, 0, error);
if (NZV(error))
if (dir == NULL)
return NULL;
while (1)