From 8568f4e445b50f1079790ade0b0d9b1f79eb7e3a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Oct 2017 19:39:29 +0100 Subject: [Minor] Avoid unnecessary dynamic allocation --- src/libserver/protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libserver') diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 69427e8b5..6180adccb 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -220,8 +220,8 @@ rspamd_protocol_handle_headers (struct rspamd_task *task, HASH_ITER (hh, msg->headers, header, htmp) { DL_FOREACH (header, h) { - hn = rspamd_fstring_new_init (h->name->begin, h->name->len); - hv = rspamd_fstring_new_init (h->value->begin, h->value->len); + hn = rspamd_fstring_new_init (h->name.begin, h->name.len); + hv = rspamd_fstring_new_init (h->value.begin, h->value.len); hn_tok = rspamd_ftok_map (hn); hv_tok = rspamd_ftok_map (hv); -- cgit v1.2.3