about summary refs log tree commit diff
path: root/Src
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 /Src
parentf972b023a20e9fb67b2693ab7c5936d5c545fe55 (diff)
downloadzsh-ccd3663d4e9a1749450b35cc689359f78a310c04.tar.gz
zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.tar.xz
zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.zip
34383: ztrdup() should be dupstring() in new cd code
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
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 */