]> Kevux Git Server - fll/commit
Bugfix: The fl_path_canonical() is not consistently resetting canonical.used.
authorKevin Day <Kevin@kevux.org>
Sun, 11 Jan 2026 22:26:48 +0000 (16:26 -0600)
committerKevin Day <Kevin@kevux.org>
Sun, 11 Jan 2026 22:26:48 +0000 (16:26 -0600)
commit90dde6b70f18447ff3481ce97d99a81b49536b5f
tree67f53c62a91756fe9b0d1b3721991d40f7797a85
parent7016263ba0c08a659b4c02ff78a04ba766838b72
Bugfix: The fl_path_canonical() is not consistently resetting canonical.used.

The `fl_path_canonical()` is replacing the `canonical` variable rather than appending to it.
However, when `path.used` is 0, then the current path is appended without resetting `canonical.used` to 0.

Ensure that `canonical.used` is always set to 0 to enforce replacement.

Add explicit documentation comment making it clear that this function performs a replacement rather than an append.
level_1/fl_path/c/path.c
level_1/fl_path/c/path.h
level_1/fl_path/data/documentation/man/man3/fl_path_canonical.3