about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--magrep.c9
1 files changed, 5 insertions, 4 deletions
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;