From eb3593b38b7b6b658e93ad05d6caf76d58cc0c35 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 22 Apr 2006 22:33:57 +0000 Subject: updated for version 7.0e06 --- src/syntax.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/syntax.c') 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; -- cgit v1.2.1