diff options
| author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2016-08-23 18:18:50 +0900 |
|---|---|---|
| committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2016-08-23 18:18:50 +0900 |
| commit | acad0620ef85b725d40d85b181e1aac1de0794c4 (patch) | |
| tree | 50b2af3407ee1371645f70843143593ce983757b /Src/utils.c | |
| parent | 39086: declare file local variables as 'static' (diff) | |
| download | zsh-acad0620ef85b725d40d85b181e1aac1de0794c4.tar zsh-acad0620ef85b725d40d85b181e1aac1de0794c4.tar.gz zsh-acad0620ef85b725d40d85b181e1aac1de0794c4.tar.bz2 zsh-acad0620ef85b725d40d85b181e1aac1de0794c4.tar.lz zsh-acad0620ef85b725d40d85b181e1aac1de0794c4.tar.xz zsh-acad0620ef85b725d40d85b181e1aac1de0794c4.tar.zst zsh-acad0620ef85b725d40d85b181e1aac1de0794c4.zip | |
39087: fix 'conditionally uninitialized' variables
Diffstat (limited to 'Src/utils.c')
| -rw-r--r-- | Src/utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index 45fd19286..d209078f4 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -5082,8 +5082,10 @@ mb_niceformat(const char *s, FILE *stream, char **outstrp, int flags) cnt = 1; /* FALL THROUGH */ default: - if (c == L'\'' && (flags & NICEFLAG_QUOTE)) + if (c == L'\'' && (flags & NICEFLAG_QUOTE)) { fmt = "\\'"; + newl = 2; + } else fmt = wcs_nicechar_sel(c, &newl, NULL, flags & NICEFLAG_QUOTE); break; |
