changeset 1510:f275115c6a1f HEAD

bugfix with a temporary kludge
author Timo Sirainen <tss@iki.fi>
date Wed, 28 May 2003 14:15:04 +0300
parents 69261ad92783
children a4ad03c210af
files src/lib-index/maildir/maildir-sync.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/maildir/maildir-sync.c	Wed May 28 14:04:28 2003 +0300
+++ b/src/lib-index/maildir/maildir-sync.c	Wed May 28 14:15:04 2003 +0300
@@ -581,7 +581,10 @@
 		hash_rec = p_new(ctx->pool, struct maildir_hash_rec, 1);
 		hash_rec->rec = rec;
 		hash_rec->action = MAILDIR_FILE_ACTION_EXPUNGE;
-		hash_insert(ctx->files, (void *) fname, hash_rec);
+
+		/* FIXME: p_strdup() eats uselessly memory. fix the code so
+		   that it's not needed. */
+		hash_insert(ctx->files, (void *) p_strdup(ctx->pool, fname), hash_rec);
 
 		rec = index->next(index, rec);
 	}