mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
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.
This commit is contained in:
parent
8e20417bdb
commit
387aeac953
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user