From 760d4e6f3adb7d5052cf5cd002a9e0f53f548f93 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 21 May 2001 06:36:36 +0000 Subject: (dir_name): Compute append_dot using path, not newpath which is not yet declared. --- lib/dirname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.2.3-70-g09d2