From 8b50a794b03244b5de8680bc35b40dec92e4131e Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 15 Nov 2017 18:15:38 +0100 Subject: magrep: keep threading while matching body --- magrep.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'magrep.c') diff --git a/magrep.c b/magrep.c index 3170902..a277995 100644 --- a/magrep.c +++ b/magrep.c @@ -106,11 +106,12 @@ match_part(int depth, struct message *msg, char *body, size_t bodylen) void match_body(char *file) { - curfile = file; - while (*curfile == ' ' || *curfile == '\t') - curfile++; + char *filename; + filename = curfile = file; + while (*filename == ' ' || *filename == '\t') + filename++; - struct message *msg = blaze822_file(curfile); + struct message *msg = blaze822_file(filename); if (!msg) return; -- cgit 1.4.1