Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4337:7d00a60df882 HEAD
Don't return NULL error so we don't crash in some systems.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 16 Jun 2006 12:20:58 +0300 |
parents | 2e9ec468197d |
children | 3f6e11e5ed2d |
files | src/plugins/quota/quota.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota.c Thu Jun 15 13:33:55 2006 +0300 +++ b/src/plugins/quota/quota.c Fri Jun 16 12:20:58 2006 +0300 @@ -373,7 +373,7 @@ const char *quota_last_error(struct quota *quota) { - return quota->last_error; + return quota->last_error != NULL ? quota->last_error : "Unknown error"; } void quota_set_error(struct quota *quota, const char *errormsg)