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
c506db00
...
c506db00211d5aae43dcc7d0115d3a33bfa85c36
authored
2008-01-22 08:59:32 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_iterator_detach): Bugfix.
1 parent
0814397d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
mailbox/iterator.c
mailbox/iterator.c
View file @
c506db0
...
...
@@ -35,7 +35,7 @@ mu_iterator_create (mu_iterator_t *piterator, void *owner)
return
MU_ERR_OUT_PTR_NULL
;
if
(
owner
==
NULL
)
return
EINVAL
;
iterator
=
calloc
(
sizeof
(
*
iterator
),
1
);
iterator
=
calloc
(
1
,
sizeof
(
*
iterator
)
);
if
(
iterator
==
NULL
)
return
ENOMEM
;
iterator
->
owner
=
owner
;
...
...
@@ -239,7 +239,7 @@ mu_iterator_detach (mu_iterator_t *root, mu_iterator_t iterator)
if
(
itr
)
{
if
(
prev
)
prev
->
next
=
itr
->
next
;
prev
->
next
_itr
=
itr
->
next_itr
;
else
*
root
=
itr
->
next_itr
;
}
...
...
Please
register
or
sign in
to post a comment