diff options
author | Bart Schaefer <schaefer@zsh.org> | 2023-10-26 08:27:18 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2023-10-26 08:27:18 -0700 |
commit | 98a6892cb138a53dc4a265e29e60dbbd813f3d73 (patch) | |
tree | c199aa5da26d9d02912abe1c71df5b6b70e24bb3 /Src/Zle/compcore.c | |
parent | 0c15cc8712b5b3c83d52b1c27f416db80d3426aa (diff) | |
download | zsh-98a6892cb138a53dc4a265e29e60dbbd813f3d73.tar.gz zsh-98a6892cb138a53dc4a265e29e60dbbd813f3d73.zip |
52244: Fix a batch of minor defects reported by Coverity.
Coverity defects 1547831, 1547826 (remove unused function), 1521551,
1500752, 1500747, 1401549, 1372423, 1270645, 1255799, 1255792, 1255789,
1255787, 1255782, 1255750
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r-- | Src/Zle/compcore.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 77fce66e8..9b87cad93 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -2249,8 +2249,9 @@ addmatches(Cadata dat, char **argv) llpl = strlen(lpre); llsl = strlen(lsuf); - if (llpl + (int)strlen(compqiprefix) + (int)strlen(lipre) != origlpre - || llsl + (int)strlen(compqisuffix) + (int)strlen(lisuf) != origlsuf) + /* This used to reference compqiprefix and compqisuffix, why? */ + if (llpl + (int)strlen(qipre) + (int)strlen(lipre) != origlpre + || llsl + (int)strlen(qisuf) + (int)strlen(lisuf) != origlsuf) lenchanged = 1; /* Test if there is an existing -P prefix. */ |