about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-08-20 22:07:06 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-08-20 22:07:06 +0000
commit1217d5a66d2e84372af577165568e5911868aa6b (patch)
tree5f9876a040fb9353aa5cb2d543586973edbf154e /Src
parentf29b8450e7db1a023142f509007feed4a9205c6a (diff)
downloadzsh-1217d5a66d2e84372af577165568e5911868aa6b.tar.gz
zsh-1217d5a66d2e84372af577165568e5911868aa6b.tar.xz
zsh-1217d5a66d2e84372af577165568e5911868aa6b.zip
22650: remove now buggy pointer to last added style
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/zutil.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/Src/Modules/zutil.c b/Src/Modules/zutil.c
index e3e4c8353..1e4bf975a 100644
--- a/Src/Modules/zutil.c
+++ b/Src/Modules/zutil.c
@@ -54,7 +54,7 @@ struct stypat {
     
 /* List of styles. */
 
-static Style zstyles, zlstyles;
+static Style zstyles;
 
 /* Memory stuff. */
 
@@ -117,7 +117,7 @@ freeallstyles(void)
 	zsfree(s->name);
 	zfree(s, sizeof(*s));
     }
-    zstyles = zlstyles = NULL;
+    zstyles = NULL;
 }
 
 /* Get the style struct for a name. */
@@ -233,11 +233,8 @@ addstyle(char *name)
     s->pats = NULL;
     s->name = ztrdup(name);
 
-    if (zlstyles)
-	zlstyles->next = s;
-    else
-	zstyles = s;
-    zlstyles = s;
+    s->next = zstyles;
+    zstyles = s;
 
     return s;
 }
@@ -1748,7 +1745,7 @@ static struct builtin bintab[] = {
 int
 setup_(UNUSED(Module m))
 {
-    zstyles = zlstyles = NULL;
+    zstyles = NULL;
 
     return 0;
 }