summaryrefslogtreecommitdiffstats
path: root/Src/Modules/system.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2026-04-29 01:55:44 +0200
committerMikael Magnusson <mikachu@gmail.com>2026-05-16 18:28:29 +0200
commit8fa759302b9339ab62187dab818556a4d956031f (patch)
treef491e3df3ea902198402ae7f3c3d5702baaaca4a /Src/Modules/system.c
parent54544: Coverity CID 439086 fix potential leak of prog in ptyread() (diff)
downloadzsh-8fa759302b9339ab62187dab818556a4d956031f.tar
zsh-8fa759302b9339ab62187dab818556a4d956031f.tar.gz
zsh-8fa759302b9339ab62187dab818556a4d956031f.tar.bz2
zsh-8fa759302b9339ab62187dab818556a4d956031f.tar.lz
zsh-8fa759302b9339ab62187dab818556a4d956031f.tar.xz
zsh-8fa759302b9339ab62187dab818556a4d956031f.tar.zst
zsh-8fa759302b9339ab62187dab818556a4d956031f.zip
54545: A few very minor things coverity complained about
Coverity CID 1692322 in Src/glob.c: i'm pretty sure this is a false positive so add a debug message just in case Coverity CID 1500752 in Src/Zle/compresult.c: remove unused assignment that also reads uninitialized pointer p And two that were just near other things it complained about Src/utils.c: Warn if maildir disappeared from under us Src/Modules/system.c: stray \n in zwarn message Src/subst.c: Use DIGBUFSIZE for buf holding digits This one would be a little hard to overflow in practice, you'd need a parameter at least 100000000000000 characters long, which is 100TB.
Diffstat (limited to 'Src/Modules/system.c')
-rw-r--r--Src/Modules/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/system.c b/Src/Modules/system.c
index f1c0d7042..1f3665dba 100644
--- a/Src/Modules/system.c
+++ b/Src/Modules/system.c
@@ -357,7 +357,7 @@ bin_sysopen(char *nam, char **args, Options ops, UNUSED(int func))
for (o = sizeof(openopts)/sizeof(*openopts) - 1; o >= 0 &&
strcasecmp(openopts[o].name, opt); o--) {}
if (o < 0) {
- zwarnnam(nam, "unsupported option: %s\n", opt);
+ zwarnnam(nam, "unsupported option: %s", opt);
return 1;
}
#if defined(FD_CLOEXEC) && !defined(O_CLOEXEC)