FreeBSD Bugzilla – Attachment 137074 Details for
Bug 182463
vi(1): vi core dumps on exit with a specific vi.exrc [regression]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-Fix-SLIST-surgery.patch
0001-Fix-SLIST-surgery.patch (text/x-diff), 898 bytes, created by
wjenkner
on 2013-12-07 16:10:58 UTC
(
hide
)
Description:
0001-Fix-SLIST-surgery.patch
Filename:
MIME Type:
Creator:
wjenkner
Created:
2013-12-07 16:10:58 UTC
Size:
898 bytes
patch
obsolete
>From 0facfe2d0586822291b18aa25433f76a19d70d2d Mon Sep 17 00:00:00 2001 >From: Wolfgang Jenkner <wjenkner@inode.at> >Date: Fri, 22 Nov 2013 16:44:45 +0100 >Subject: [PATCH] Fix SLIST surgery. > >Mostly copied from seq_delete. >--- > cl/cl_term.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > >diff --git a/cl/cl_term.c b/cl/cl_term.c >index 3d8cdb2..4761ee2 100644 >--- a/cl/cl_term.c >+++ b/cl/cl_term.c >@@ -187,14 +187,18 @@ cl_term_init(SCR *sp) > int > cl_term_end(GS *gp) > { >- SEQ *qp, *nqp; >+ SEQ *qp, *nqp, *pre_qp = NULL; > > /* Delete screen specific mappings. */ > SLIST_FOREACH_SAFE(qp, gp->seqq, q, nqp) > if (F_ISSET(qp, SEQ_SCREEN)) { >- SLIST_REMOVE_HEAD(gp->seqq, q); >+ if (qp == SLIST_FIRST(gp->seqq)) >+ SLIST_REMOVE_HEAD(gp->seqq, q); >+ else >+ SLIST_REMOVE_AFTER(pre_qp, q); > (void)seq_free(qp); >- } >+ } else >+ pre_qp = qp; > return (0); > } > >-- >1.8.4.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 182463
:
137070
|
137071
|
137072
|
137073
| 137074