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
5845efba
...
5845efba26f3dcae8718fe9d447a6071e9255af4
authored
2008-11-21 10:15:05 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
* auth/sql.c (get_field): NULL value in an optional field is
equivalent to MU_ERR_NOENT.
1 parent
8d4b5c02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
ChangeLog
auth/sql.c
ChangeLog
View file @
5845efb
2008-11-21 Sergey Poznyakoff <gray@gnu.org.ua>
* auth/sql.c (get_field): NULL value in an optional field is
equivalent to MU_ERR_NOENT.
2008-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
* mailbox/amd.c (_amd_attach_message): Call mu_body_clear_modified
...
...
auth/sql.c
View file @
5845efb
...
...
@@ -180,9 +180,14 @@ get_field (mu_sql_connection_t conn, const char *id, char **ret, int mandatory)
}
else
if
(
!*
ret
)
{
mu_error
(
_
(
"SQL field `%s' (`%s') has NULL value"
),
id
,
name
?
*
name
:
id
);
rc
=
MU_ERR_READ
;
if
(
mandatory
)
{
mu_error
(
_
(
"SQL field `%s' (`%s') has NULL value"
),
id
,
name
?
*
name
:
id
);
rc
=
MU_ERR_READ
;
}
else
rc
=
MU_ERR_NOENT
;
}
return
rc
;
...
...
Please
register
or
sign in
to post a comment