Mercurial > dovecot > original-hg > dovecot-1.2
changeset 973:d634f81c1217 HEAD
Don't call hash_remove() if it isn't there.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 14 Jan 2003 13:43:01 +0200 |
parents | 0857c8c7ddf9 |
children | d9df59a406fb |
files | src/lib-index/maildir/maildir-sync.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/maildir/maildir-sync.c Tue Jan 14 13:41:54 2003 +0200 +++ b/src/lib-index/maildir/maildir-sync.c Tue Jan 14 13:43:01 2003 +0200 @@ -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();