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
e61d9ea0
...
e61d9ea0a63b7a13ac02cfdd332cdaa5ee0ef1ad
authored
2002-12-09 13:24:44 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(_get_address_part): Bugfix: assign to *data only if ret is not null.
1 parent
98011e85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
libsieve/tests.c
libsieve/tests.c
View file @
e61d9ea
...
...
@@ -31,7 +31,7 @@ static int
_get_address_part
(
void
*
item
,
void
*
data
)
{
sieve_runtime_tag_t
*
t
=
item
;
address_aget_t
ret
;
address_aget_t
ret
=
NULL
;
if
(
strcmp
(
t
->
tag
,
"all"
)
==
0
)
ret
=
address_aget_email
;
...
...
@@ -39,8 +39,12 @@ _get_address_part (void *item, void *data)
ret
=
address_aget_domain
;
else
if
(
strcmp
(
t
->
tag
,
"localpart"
)
==
0
)
ret
=
address_aget_local_part
;
*
(
address_aget_t
*
)
data
=
ret
;
return
ret
!=
NULL
;
if
(
ret
)
{
*
(
address_aget_t
*
)
data
=
ret
;
return
1
;
/* break the loop */
}
return
0
;
/* continue */
}
address_aget_t
...
...
Please
register
or
sign in
to post a comment