diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-02 09:35:07 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-02 09:35:07 +0000 |
commit | f959bee0d2b488f80c1f14e6940435466f52830e (patch) | |
tree | f010de1589c64a09a8e992b14abe0f1d766ae00d /handler.c | |
parent | cde06330343329201736e4279180e969f896a7f2 (diff) |
mutt_parse_date () shouldn't modify its argument. Problem noted by
Byrial Jensen.
Diffstat (limited to 'handler.c')
-rw-r--r-- | handler.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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; |