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:
parent
fc92459681
commit
6066c2816f
@ -23,6 +23,8 @@
|
|||||||
Use Windows folder dialog in ui_path_box_open_clicked().
|
Use Windows folder dialog in ui_path_box_open_clicked().
|
||||||
* src/utils.c:
|
* src/utils.c:
|
||||||
Wrap notebook pages when switching tabs.
|
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>
|
2007-05-10 Nick Treleaven <nick.treleaven@btinternet.com>
|
||||||
|
|||||||
@ -1666,7 +1666,7 @@ GSList *utils_get_file_list(const gchar *path, guint *length, GError **error)
|
|||||||
g_return_val_if_fail(path != NULL, NULL);
|
g_return_val_if_fail(path != NULL, NULL);
|
||||||
|
|
||||||
dir = g_dir_open(path, 0, error);
|
dir = g_dir_open(path, 0, error);
|
||||||
if (NZV(error))
|
if (dir == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user