From 387aeac953173cc38b2341d23e7e3d6c8d6a35a2 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 2 May 2009 22:01:00 +0200 Subject: [PATCH] No segfault At the end of the destroy_vs there two assignments vs->doc_view->vs = NULL and vs->doc_view = NULL. In the setup_session the copy_vs left the vs "unbound" with any variable. At least one of these two is wrong. --- src/session/session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/session/session.c b/src/session/session.c index f024e8be..f89ecb13 100644 --- a/src/session/session.c +++ b/src/session/session.c @@ -854,6 +854,8 @@ setup_session(struct session *ses, struct uri *uri, struct session *base) destroy_vs(vs, 1); copy_vs(vs, base->doc_view->vs); + ses->doc_view->vs = vs; + vs->doc_view = ses->doc_view; } } -- 2.11.4.GIT