[dovecot-cvs]
dovecot/src/lib-index/maildir maildir-sync.c,1.42,1.43
cras at procontrol.fi
cras at procontrol.fi
Wed May 28 15:15:07 EEST 2003
Update of /home/cvs/dovecot/src/lib-index/maildir
In directory danu:/tmp/cvs-serv23959
Modified Files:
maildir-sync.c
Log Message:
bugfix with a temporary kludge
Index: maildir-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/maildir/maildir-sync.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- maildir-sync.c 21 May 2003 11:42:47 -0000 1.42
+++ maildir-sync.c 28 May 2003 11:15:04 -0000 1.43
@@ -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);
}
More information about the dovecot-cvs
mailing list