[dovecot-cvs] dovecot/src/plugins/quota quota.c,1.9,1.10
cras at dovecot.org
cras at dovecot.org
Fri Jun 16 12:21:00 EEST 2006
Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv4445
Modified Files:
quota.c
Log Message:
Don't return NULL error so we don't crash in some systems.
Index: quota.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- quota.c 11 Jun 2006 17:39:04 -0000 1.9
+++ quota.c 16 Jun 2006 09:20:58 -0000 1.10
@@ -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)
More information about the dovecot-cvs
mailing list