diff options
| author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-01-25 18:03:20 +0000 |
|---|---|---|
| committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-01-25 18:03:20 +0000 |
| commit | ccd3663d4e9a1749450b35cc689359f78a310c04 (patch) | |
| tree | ee6c63f9d160eb2fa6a1777923b9c8e44a4982c4 | |
| parent | 34373, 34374: update completion of builtin commands, modifiers, (diff) | |
| download | zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.tar zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.tar.gz zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.tar.bz2 zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.tar.lz zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.tar.xz zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.tar.zst zsh-ccd3663d4e9a1749450b35cc689359f78a310c04.zip | |
34383: ztrdup() should be dupstring() in new cd code
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | Src/utils.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 */ |
