about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-01-25 18:03:20 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-01-25 18:03:20 +0000
commitccd3663d4e9a1749450b35cc689359f78a310c04 (patch)
treeee6c63f9d160eb2fa6a1777923b9c8e44a4982c4
parentf972b023a20e9fb67b2693ab7c5936d5c545fe55 (diff)
downloadzsh-ccd3663d4e9a1749450b35cc689359f78a310c04.tar.gz
zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.tar.xz
zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.zip
34383: ztrdup() should be dupstring() in new cd code
-rw-r--r--ChangeLog4
-rw-r--r--Src/utils.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f11eebe4e..427725564 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-01-25  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* 34383: Src/utils.c: new ztrdup() shoud be dupstring().
+
 2015-01-25  Oliver Kiddle  <opk@zsh.org>
 
 	* 34373, 34374: Completion/Unix/Command/_chown,
diff --git a/Src/utils.c b/Src/utils.c
index cf18f1240..0490df516 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1114,7 +1114,7 @@ getnameddir(char *name)
 		zsfree(dir);
 		return str;
 	    } else
-		return ztrdup(pw->pw_dir);
+		return dupstring(pw->pw_dir);
 	}
     }
 #endif /* HAVE_GETPWNAM */