changeset 3263:112ce336a071

(dir_name): Compute append_dot using path, not newpath which is not yet declared.
author Jim Meyering <jim@meyering.net>
date Mon, 21 May 2001 06:36:36 +0000
parents ca6b6e9e7f28
children a6782c5859e7
files lib/dirname.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/dirname.c
+++ b/lib/dirname.c
@@ -53,7 +53,7 @@
 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)