summaryrefslogtreecommitdiffstats
path: root/Src
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2026-05-08 12:58:21 +0200
committerMikael Magnusson <mikachu@gmail.com>2026-05-16 18:28:27 +0200
commiteb0fbcc4db5e467f84d77849d046e64bec32b567 (patch)
tree644a4fba7f5b5b39114a41f0271edeeba10dda60 /Src
parent54548: zftp: fix some mistakes (diff)
downloadzsh-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.
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c1
1 files changed, 1 insertions, 0 deletions
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;