Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d50ab2a1
...
d50ab2a1b7cbfc245b68c31fc3d67c4ae4dc7e11
authored
2005-07-26 12:38:51 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(_insert_item): Bugfix
1 parent
2ccf0bf2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
mailbox/list.c
mailbox/list.c
View file @
d50ab2a
...
...
@@ -198,29 +198,24 @@ _insert_item(list_t list, struct list_data *current, void *new_item,
{
ldata
->
prev
=
current
->
prev
;
ldata
->
next
=
current
;
if
(
current
->
prev
)
if
(
current
->
prev
!=
&
list
->
head
)
current
->
prev
->
next
=
ldata
;
else
list
->
head
.
next
=
ldata
;
if
(
current
==
list
->
head
.
prev
)
list
->
head
.
prev
=
ldata
;
else
current
->
prev
=
ldata
;
current
->
prev
=
ldata
;
}
else
{
ldata
->
next
=
current
->
next
;
ldata
->
prev
=
current
;
if
(
current
->
next
)
if
(
current
->
next
!=
&
list
->
head
)
current
->
next
->
prev
=
ldata
;
else
list
->
head
.
prev
=
ldata
;
if
(
current
==
list
->
head
.
next
)
list
->
head
.
next
=
ldata
;
else
current
->
next
=
ldata
;
current
->
next
=
ldata
;
}
list
->
count
++
;
...
...
Please
register
or
sign in
to post a comment