summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-12-19 21:45:12 -0500
committerMike Frysinger <vapier@gentoo.org>2021-12-19 21:50:28 -0500
commita4da1664f8089e4e81c6ebc16a2312b7f49ce97c (patch)
treeccc9c30981f4cba5bc8d042249f120cca8ed46fa /init.c
parent80ba3a49f92e5724a8032303e35c91e2fe3215a7 (diff)
simplify envelope subject handling code a little
Avoid excess defines. Compiled code is the same.
Diffstat (limited to 'init.c')
-rw-r--r--init.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/init.c b/init.c
index 64571ce4..24b60ddf 100644
--- a/init.c
+++ b/init.c
@@ -2583,18 +2583,18 @@ static int parse_set (BUFFER *tmp, BUFFER *s, union pointer_long_t udata, BUFFER
regmatch_t pmatch[1];
int i;
-#define CUR_ENV Context->hdrs[i]->env
for (i = 0; i < Context->msgcount; i++)
{
- if (CUR_ENV && CUR_ENV->subject)
+ ENVELOPE *cur_env = Context->hdrs[i]->env;
+
+ if (cur_env && cur_env->subject)
{
- CUR_ENV->real_subj =
- (regexec (ReplyRegexp.rx, CUR_ENV->subject, 1, pmatch, 0)) ?
- CUR_ENV->subject :
- CUR_ENV->subject + pmatch[0].rm_eo;
+ cur_env->real_subj =
+ (regexec (ReplyRegexp.rx, cur_env->subject, 1, pmatch, 0)) ?
+ cur_env->subject :
+ cur_env->subject + pmatch[0].rm_eo;
}
}
-#undef CUR_ENV
}
}
}