[dovecot-cvs] dovecot/src/plugins/quota quota.c,1.8,1.8.2.1

cras at dovecot.org cras at dovecot.org
Thu Jun 8 23:22:05 EEST 2006


Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv14369

Modified Files:
      Tag: branch_1_0
	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.8
retrieving revision 1.8.2.1
diff -u -d -r1.8 -r1.8.2.1
--- quota.c	6 Mar 2006 15:48:33 -0000	1.8
+++ quota.c	8 Jun 2006 20:22:03 -0000	1.8.2.1
@@ -354,7 +354,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