[dovecot-cvs] dovecot/src/lib-mail message-header-search.c,1.4,1.5
cras at procontrol.fi
cras at procontrol.fi
Sun Dec 1 20:17:55 EET 2002
Update of /home/cvs/dovecot/src/lib-mail
In directory danu:/tmp/cvs-serv9447/lib-mail
Modified Files:
message-header-search.c
Log Message:
Added a few t_push/t_pops to prevent unnecessary memory usage.
Index: message-header-search.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-mail/message-header-search.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- message-header-search.c 30 Nov 2002 14:36:20 -0000 1.4
+++ message-header-search.c 1 Dec 2002 18:17:53 -0000 1.5
@@ -194,10 +194,13 @@
!ctx->submatch) {
/* encoded string. read it. */
p += 2;
+ t_push();
if (match_encoded(&p, end, ctx)) {
+ t_pop();
found = TRUE;
break;
}
+ t_pop();
i_assert(p != end);
continue;
@@ -212,8 +215,10 @@
else {
/* we have non-ascii in header. treat the rest of the
header as encoded with the key's charset */
+ t_push();
found = match_data(p, (size_t) (end-p),
ctx->key_charset, ctx);
+ t_pop();
break;
}
More information about the dovecot-cvs
mailing list