[Github-comments] [geany/geany-plugins] Workbench: fixed not closed file handles on directory scanning (thanks to techee). Fixes #607. (#608)

Frank Lanitz notifications at xxxxx
Wed Oct 4 20:25:30 UTC 2017


frlan commented on this pull request.



> @@ -245,14 +248,17 @@ 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 (TRUE)
+	while ((child_name = g_dir_read_name(dir)))

At least I needed to think twice what those lines do. I'm not a 100%-C-geek but I don't think we need to use every syntax candy available. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/608#discussion_r142782607
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20171004/7808788d/attachment.html>


More information about the Github-comments mailing list