diff options
| author | dana <dana@dana.is> | 2018-12-30 03:42:07 -0600 |
|---|---|---|
| committer | dana <dana@dana.is> | 2018-12-30 03:42:07 -0600 |
| commit | 7951ede1dbb756aa3d6e81ee05fd9a63138066a1 (patch) | |
| tree | 14157a2bc4471a6cceefea20bbe2583f5f100d51 /Src/utils.c | |
| parent | 43953: Fix rounding/truncation error in %. time-format specifier (diff) | |
| download | zsh-7951ede1dbb756aa3d6e81ee05fd9a63138066a1.tar zsh-7951ede1dbb756aa3d6e81ee05fd9a63138066a1.tar.gz zsh-7951ede1dbb756aa3d6e81ee05fd9a63138066a1.tar.bz2 zsh-7951ede1dbb756aa3d6e81ee05fd9a63138066a1.tar.lz zsh-7951ede1dbb756aa3d6e81ee05fd9a63138066a1.tar.xz zsh-7951ede1dbb756aa3d6e81ee05fd9a63138066a1.tar.zst zsh-7951ede1dbb756aa3d6e81ee05fd9a63138066a1.zip | |
unposted (per 43938): Avoid segfault when unmetafying empty string
Diffstat (limited to 'Src/utils.c')
| -rw-r--r-- | Src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index 0969cef37..32f600858 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3846,7 +3846,7 @@ sepjoin(char **s, char *sep, int heap) char sepbuf[2]; if (!*s) - return heap ? "" : ztrdup(""); + return heap ? dupstring("") : ztrdup(""); if (!sep) { /* optimise common case that ifs[0] is space */ if (ifs && *ifs != ' ') { |
