]> Kevux Git Server - fll/commit
Bugfix: Fixes to f_path of problems exposed by unit tests.
authorKevin Day <thekevinday@gmail.com>
Fri, 13 May 2022 06:21:02 +0000 (01:21 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 13 May 2022 06:25:44 +0000 (01:25 -0500)
commit7357a8f029d7571091434b31cd234f38a5babbcd
treebe21e088762fe7cd89548ca253b31a5d7474b949
parentaaee50502e1f131f03ef471d021226b4bbe65375
Bugfix: Fixes to f_path of problems exposed by unit tests.

Remove unnecessary variable.
Remove unnecessary if condition.

Change while loop to be more robust in .
Check the path.used before checking path.string in case path.used is 0 (this should be safer).

Update function documentation.

The logic in private_f_path_real() is incorrect.
The realpath() function returns a string (char *) rather than an integer.

Also do some code clean up.
level_0/f_path/c/path.c
level_0/f_path/c/path.h
level_0/f_path/c/private-path.c