summaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-08-26 21:12:23 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-08-26 21:12:23 +0000
commit344b71b0b93ff4072800ccac54dac76b0815eab9 (patch)
tree20d0fea52d62489686df41ba8339d6ec78ecf2a1 /rfc822.c
parent17e73c0ac6d9d00b60940bec7baa9a728ffa1a9c (diff)
Another possible memory leak in rfc822_parse_adrlist. The
problem and the patch are pretty much the same as with the last fix applied to this file - it's just ',' instaed of ';' this time.
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc822.c b/rfc822.c
index ce3c126f..70f3a8e5 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -340,7 +340,7 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *top, const char *s)
}
#ifdef EXACT_ADDRESS
- if (last)
+ if (last && !last->val)
last->val = mutt_substrdup (begin, s);
#endif
commentlen = 0;