* PATCH: silence a compiler warning
@ 2000-05-31 5:20 Wayne Davison
0 siblings, 0 replies; only message in thread
From: Wayne Davison @ 2000-05-31 5:20 UTC (permalink / raw)
To: Zsh Workers
Here's a patch to silence the "potentially used uninitialized"
warning in Src/pattern.c. (I also had a patch for Zle/computil.c,
but it looks like Sven already fixed that one in the same way I did.)
..wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: Src/pattern.c
@@ -807,7 +807,7 @@
static long
patcomppiece(int *flagp)
{
- long starter, next, pound, op;
+ long starter = 0, next, pound, op;
int flags, flags2, kshchar, len, ch, patch;
union upat up;
char *nptr, *str0, cbuf[2];
@@ -1025,7 +1025,6 @@
if (*patparse != Outang)
return 0;
patparse++;
- starter = 0; /* shut compiler up */
switch(len) {
case 3:
starter = patnode(P_NUMRNG);
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-05-31 5:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-31 5:20 PATCH: silence a compiler warning Wayne Davison
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).