From: Wayne Davison <wayne@clari.net>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: PATCH: pws-21: uninitialized variables
Date: Fri, 11 Jun 1999 13:35:08 -0700 [thread overview]
Message-ID: <199906112035.NAA21517@bebop.clari.net> (raw)
It looks like the complaint about a variable in add_match_data()
being potentially used uninitialized is valid, so this patch sets
qisl to 0.
The complaints about 4 variables in sep_comp_string() being
potentially used uninitialized appear to be bogus, but I like to get
rid of warnings, so I added initializations for them as well.
..wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: Src/Zle/zle_tricky.c
--- zsh-3.1.5-pws-21/Src/Zle/zle_tricky.c Tue Jun 8 00:30:29 1999
+++ ./Src/Zle/zle_tricky.c Tue Jun 8 18:25:39 1999
@@ -3427,7 +3427,7 @@
Aminfo ai = (alt ? fainfo : ainfo);
int palen, salen, qipl, ipl, pl, ppl, qisl, isl, psl;
- palen = salen = qipl = ipl = pl = ppl = isl = psl = 0;
+ palen = salen = qipl = ipl = pl = ppl = qisl = isl = psl = 0;
DPUTS(!line, "BUG: add_match_data() without cline");
@@ -4914,6 +4914,9 @@
int sl = strlen(ss), tl, got = 0, i = 0, cur = -1, oll = ll;
int ois = instring, oib = inbackt;
char *tmp, *p, *ns, *ol = (char *) line, sav, oaq = autoq, *qp, *qs;
+
+ swb = swe = soffs = 0;
+ ns = NULL;
/* Put the string in the lexer buffer and call the lexer to *
* get the words we have to expand. */
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
reply other threads:[~1999-06-11 20:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199906112035.NAA21517@bebop.clari.net \
--to=wayne@clari.net \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).