summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-22 22:33:57 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-22 22:33:57 +0000
commiteb3593b38b7b6b658e93ad05d6caf76d58cc0c35 (patch)
tree39210f19a86e4db2914523b0fde4a5ff9d345c16 /src/syntax.c
parent57657d85c6c3d812e99b5e5d5161c07c66ac7dc7 (diff)
downloadvim-git-eb3593b38b7b6b658e93ad05d6caf76d58cc0c35.tar.gz
updated for version 7.0e06v7.0e06
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 714de44d2..5308f903c 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1371,7 +1371,8 @@ store_current_state(sp)
for (p = syn_buf->b_sst_first; p != NULL; p = p->sst_next)
if (p->sst_next == sp)
break;
- p->sst_next = sp->sst_next;
+ if (p != NULL) /* just in case */
+ p->sst_next = sp->sst_next;
}
syn_stack_free_entry(syn_buf, sp);
sp = NULL;