summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-02 09:35:07 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-02 09:35:07 +0000
commitf959bee0d2b488f80c1f14e6940435466f52830e (patch)
treef010de1589c64a09a8e992b14abe0f1d766ae00d /handler.c
parentcde06330343329201736e4279180e969f896a7f2 (diff)
mutt_parse_date () shouldn't modify its argument. Problem noted by
Byrial Jensen.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/handler.c b/handler.c
index ede357c2..4952f95b 100644
--- a/handler.c
+++ b/handler.c
@@ -1231,14 +1231,8 @@ static void external_body_handler (BODY *b, STATE *s)
}
expiration = mutt_get_parameter ("expiration", b->parameter);
- if (expiration)
- {
- /* mutt_parse_date() will alter its argument, so we need a copy */
- char *e = safe_strdup (expiration);
-
- expire = mutt_parse_date (e, NULL);
- free (e);
- }
+ if (expiration)
+ expire = mutt_parse_date (expiration, NULL);
else
expire = -1;