diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2026-05-08 12:58:21 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2026-05-16 18:28:27 +0200 |
| commit | eb0fbcc4db5e467f84d77849d046e64bec32b567 (patch) | |
| tree | 644a4fba7f5b5b39114a41f0271edeeba10dda60 | |
| parent | 54548: zftp: fix some mistakes (diff) | |
| download | zsh-eb0fbcc4db5e467f84d77849d046e64bec32b567.tar zsh-eb0fbcc4db5e467f84d77849d046e64bec32b567.tar.gz zsh-eb0fbcc4db5e467f84d77849d046e64bec32b567.tar.bz2 zsh-eb0fbcc4db5e467f84d77849d046e64bec32b567.tar.lz zsh-eb0fbcc4db5e467f84d77849d046e64bec32b567.tar.xz zsh-eb0fbcc4db5e467f84d77849d046e64bec32b567.tar.zst zsh-eb0fbcc4db5e467f84d77849d046e64bec32b567.zip | |
54535: Coverity CID 1500747 0-initialize ti
This isn't strictly necessary but it's done a few lines above for the -s
branch so it's at least consistent if we do the same thing in both
places.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | Src/builtin.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -1,5 +1,7 @@ 2026-05-16 Mikael Magnusson <mikachu@gmail.com> + * 54535: Src/builtin.c: Coverity CID 1500747 0-initialize ti + * 54548: Src/Modules/zftp.c: zftp: fix some mistakes * 54533: Completion/Unix/Command/_gcc: _gcc: fix some funny diff --git a/Src/builtin.c b/Src/builtin.c index 266fcf924..706191832 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -6572,6 +6572,7 @@ bin_read(char *name, char **args, Options ops, UNUSED(int func)) #endif if (isatty(readfd)) { struct ttyinfo ti; + memset(&ti, 0, sizeof(struct ttyinfo)); fdgettyinfo(readfd, &ti); if (! resettty) { saveti = ti; |
