# HG changeset patch # User Timo Sirainen # Date 1042544581 -7200 # Node ID d634f81c1217b544e7faf1c2d8a6eadce2c6d89d # Parent 0857c8c7ddf901f114c7b5b5176c02d70c9edf2f Don't call hash_remove() if it isn't there. diff -r 0857c8c7ddf9 -r d634f81c1217 src/lib-index/maildir/maildir-sync.c --- 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();