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
26fde04f
...
26fde04febf14928e533cc7f923f76c98cba5d25
authored
2004-12-17 16:20:43 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(sql_retrieve_quota): Allow for NULL columns
1 parent
5e1b0bfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
mail.local/mailquota.c
mail.local/mailquota.c
View file @
26fde04
...
...
@@ -216,6 +216,7 @@ sql_retrieve_quota (char *name, size_t *quota)
else
{
rc
=
RETR_OK
;
tmp
=
NULL
;
status
=
mu_sql_get_column
(
conn
,
0
,
0
,
&
tmp
);
if
(
status
)
{
...
...
@@ -224,7 +225,7 @@ sql_retrieve_quota (char *name, size_t *quota)
mu_strerror
(
status
));
rc
=
RETR_FAILURE
;
}
else
if
(
strcasecmp
(
tmp
,
"none"
)
==
0
)
else
if
(
tmp
==
NULL
||
strcasecmp
(
tmp
,
"none"
)
==
0
)
rc
=
RETR_UNLIMITED
;
else
{
...
...
@@ -232,7 +233,8 @@ sql_retrieve_quota (char *name, size_t *quota)
if
(
get_size
(
tmp
,
quota
,
&
p
))
{
mu_error
(
_
(
"bogus mailbox quota for `%s' (near `%s')"
),
name
,
p
);
mu_error
(
_
(
"bogus mailbox quota for `%s' (near `%s')"
),
name
,
p
);
*
quota
=
groupquota
;
}
}
...
...
Please
register
or
sign in
to post a comment