diff options
author | Jim Meyering <jim@meyering.net> | 2001-05-21 06:36:36 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-05-21 06:36:36 +0000 |
commit | 760d4e6f3adb7d5052cf5cd002a9e0f53f548f93 (patch) | |
tree | 8d8b300a9fecda688ecd469a93fdd8d7a3e0208d /lib | |
parent | 52ba9d8815176a0a7e25755e34a7298c4f5182b7 (diff) | |
download | coreutils-760d4e6f3adb7d5052cf5cd002a9e0f53f548f93.tar.xz |
(dir_name): Compute append_dot using path, not newpath
which is not yet declared.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dirname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dirname.c b/lib/dirname.c index 109eccc2c..9fb5f0937 100644 --- a/lib/dirname.c +++ b/lib/dirname.c @@ -53,7 +53,7 @@ char * dir_name (char const *path) { size_t length = dir_len (path); - int append_dot = (length == FILESYSTEM_PREFIX_LEN (newpath)); + int append_dot = (length == FILESYSTEM_PREFIX_LEN (path)); char *newpath = xmalloc (length + append_dot + 1); memcpy (newpath, path, length); if (append_dot) |