From: Kevin Day Date: Wed, 23 Apr 2025 02:45:16 +0000 (-0500) Subject: Bugfix: The fl_directory_do() depth is not being incremented at the top. X-Git-Tag: 0.7.1~13 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=7d8f92fb72f65711033522369faab09288f7933d;p=fll Bugfix: The fl_directory_do() depth is not being incremented at the top. The top-most level must increment the depth before the initial recursion. --- diff --git a/level_1/fl_directory/c/directory.c b/level_1/fl_directory/c/directory.c index 167beea..6731e87 100644 --- a/level_1/fl_directory/c/directory.c +++ b/level_1/fl_directory/c/directory.c @@ -115,7 +115,12 @@ extern "C" { } if (recurse->depth < recurse->depth_max) { + ++recurse->depth; + private_fl_directory_do_recurse(recurse); + + --recurse->depth; + if (F_status_is_error(recurse->state.status)) return; if (recurse->state.status == F_done) {