Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Small fix for uninitialized variable



Here's a small patch that fixes uninitialized memory accesses found
at run-time via the tests.

-FR.



__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
Index: Src/pattern.c
===================================================================
--- zsh/Src/opattern.c	Thu Apr 27 03:58:49 2000
+++ zsh/Src/pattern.c	Thu May 25 22:49:05 2000
@@ -631,7 +631,7 @@
 patcompbranch(int *flagp)
 {
     long chain, latest, starter;
-    int flags;
+    int flags = 0;
 
     *flagp = P_PURESTR;
 


Messages sorted by: Reverse Date, Date, Thread, Author