Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: unused variable
- X-seq: zsh-workers 4784
- From: Phil Pennock <phil@xxxxxxxxxxxxxxxxxxxxx>
- To: Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxxx>
- Subject: PATCH: unused variable
- Date: Mon, 14 Dec 1998 20:15:35 +0000
- Mail-followup-to: Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxxx>
- Organisation: Organisation?  Here?  No, over there ---->
Compilation of glob.c gave a warning that the variable 'j' on line 1950
was unused.  Checking the func, this is not dependent upon the
preprocessor.  Quick-fix noddy patch.
--- Src/glob.c.old	Fri Dec 11 16:02:31 1998
+++ Src/glob.c	Mon Dec 14 20:12:26 1998
@@ -1947,7 +1947,7 @@
 {
     Comp c;
     char *s = *sp, *t, *start, sav;
-    int i, j, l = strlen(*sp), matched;
+    int i, l = strlen(*sp), matched;
 
     MUSTUSEHEAP("getmatch");	/* presumably covered by prefork() test */
     repllist = NULL;
-- 
--> Phil Pennock ; GAT d- s+:+ a22 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++
E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+
G+ e+ h* r y?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author