Branch: refs/heads/master Author: LarsDW223 lars_paulsen@web.de Committer: LarsDW223 lars_paulsen@web.de Date: Thu, 05 Oct 2017 16:12:12 UTC Commit: 45e8a2d3e5733368536f50359fd56a58b3518429 https://github.com/geany/geany-plugins/commit/45e8a2d3e5733368536f50359fd56a...
Log Message: ----------- workbench: Small code re-factoring.
Modified Paths: -------------- workbench/src/wb_project.c
Modified: workbench/src/wb_project.c 6 lines changed, 4 insertions(+), 2 deletions(-) =================================================================== @@ -248,8 +248,10 @@ static GSList *wb_project_dir_get_file_list(WB_PROJECT_DIR *root, const gchar *u
g_hash_table_insert(visited_paths, real_path, GINT_TO_POINTER(1));
- while ((child_name = g_dir_read_name(dir))) - children = g_slist_prepend(children, g_strdup(child_name)); + while ((child_name = g_dir_read_name(dir)) != NULL) + { + children = g_slist_prepend(children, g_strdup(child_name)); + }
g_dir_close(dir);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org