nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit c599bc9bff01c7c8a3a3dadf0172b7cb3d74f203
parent 54ded4527a84e3e16dc8a5c91e6f70071cb88a6a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  1 Aug 2022 09:17:35 +0200

tweaks: rename a variable, to not be the same as a function name

Diffstat:
Msrc/files.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -2401,13 +2401,13 @@ int diralphasort(const void *va, const void *vb) /* Return TRUE when the given path is a directory. */ bool is_dir(const char *path) { - char *realpath = real_dir_from_tilde(path); + char *thepath = real_dir_from_tilde(path); struct stat fileinfo; bool retval; - retval = (stat(realpath, &fileinfo) != -1 && S_ISDIR(fileinfo.st_mode)); + retval = (stat(thepath, &fileinfo) != -1 && S_ISDIR(fileinfo.st_mode)); - free(realpath); + free(thepath); return retval; }