1
1

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

Этот коммит содержится в:
Benno Schulenberg 2022-08-01 09:17:35 +02:00
родитель 54ded4527a
Коммит c599bc9bff

Просмотреть файл

@ -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;
}