dovecot-2.2-pigeonhole: lib-sievestorage: Fixed file path compar...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Tue Jun 17 21:04:34 UTC 2014


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/14ca1297d52d
changeset: 1875:14ca1297d52d
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Tue Jun 17 23:04:24 2014 +0200
description:
lib-sievestorage: Fixed file path comparison function.
Forgot a few '*' there.
Reported by Coverity.

diffstat:

 src/lib-sievestorage/sieve-storage-script.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r a358a0d7af70 -r 14ca1297d52d src/lib-sievestorage/sieve-storage-script.c
--- a/src/lib-sievestorage/sieve-storage-script.c	Tue Jun 17 22:52:32 2014 +0200
+++ b/src/lib-sievestorage/sieve-storage-script.c	Tue Jun 17 23:04:24 2014 +0200
@@ -37,9 +37,9 @@
 	int ret;
 	
 	p1 = path1; p2 = path2;
-	if (*p2 == '\0' && p1 != '\0')
+	if (*p2 == '\0' && *p1 != '\0')
 		return 1;
-	if (*p1 == '\0' && p2 != '\0')
+	if (*p1 == '\0' && *p2 != '\0')
 		return -1;
 	if (*p1 == '/' && *p2 != '/')
 		return 1;


More information about the dovecot-cvs mailing list