[dovecot-cvs] dovecot/src/lib-index/maildir maildir-sync.c,1.26,1.27

cras at procontrol.fi cras at procontrol.fi
Tue Jan 14 13:43:03 EET 2003


Update of /home/cvs/dovecot/src/lib-index/maildir
In directory danu:/tmp/cvs-serv30003/lib-index/maildir

Modified Files:
	maildir-sync.c 
Log Message:
Don't call hash_remove() if it isn't there.



Index: maildir-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/maildir/maildir-sync.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- maildir-sync.c	11 Jan 2003 19:55:56 -0000	1.26
+++ maildir-sync.c	14 Jan 2003 11:43:01 -0000	1.27
@@ -79,7 +79,8 @@
 		base_fname = t_strcut(fname, ':');
 
 		value = hash_lookup(files, base_fname);
-		hash_remove(files, base_fname);
+		if (value != NULL)
+			hash_remove(files, base_fname);
 
 		t_pop();
 




More information about the dovecot-cvs mailing list