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
0c3fed6e
...
0c3fed6e188fa392bacf9b66f04838baf2b7badc
authored
2004-07-03 19:18:59 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(list_data_dup): Bugfix: *ptr was not assigned.
1 parent
b077544f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
mailbox/list.c
mailbox/list.c
View file @
0c3fed6
...
...
@@ -422,13 +422,10 @@ curitem_p (void *owner, void *item)
static
int
list_data_dup
(
void
**
ptr
,
void
*
owner
)
{
struct
list_iterator
*
itr
=
owner
;
struct
list_iterator
*
clone
;
clone
=
malloc
(
sizeof
*
itr
);
if
(
clone
==
NULL
)
*
ptr
=
malloc
(
sizeof
(
struct
list_iterator
));
if
(
*
ptr
==
NULL
)
return
ENOMEM
;
/* let the assignement operator copy the elements. */
*
clone
=
*
itr
;
memcpy
(
*
ptr
,
owner
,
sizeof
(
struct
list_iterator
));
return
0
;
}
...
...
Please
register
or
sign in
to post a comment