From c599bc9bff01c7c8a3a3dadf0172b7cb3d74f203 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 1 Aug 2022 09:17:35 +0200 Subject: [PATCH] tweaks: rename a variable, to not be the same as a function name --- src/files.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/files.c b/src/files.c index 7bf8a37d..e2bbfe1c 100644 --- 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; }