summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlain Magloire <alainm@gnu.org>2001-05-20 04:10:02 +0000
committerAlain Magloire <alainm@gnu.org>2001-05-20 04:10:02 +0000
commitc3f76eee2222a35197acb9bfbd03e272d5a51ad0 (patch)
tree064d94071498c4fdb4f518abf22a6c4ab74919c9
parent890e5a0b7110e38e6a5ddf5e4a8611dccf4c28fa (diff)
downloadmailutils-c3f76eee2222a35197acb9bfbd03e272d5a51ad0.tar.gz
mailutils-c3f76eee2222a35197acb9bfbd03e272d5a51ad0.tar.bz2
A litle oops corrected.
-rw-r--r--mailbox/address.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mailbox/address.c b/mailbox/address.c
index 588efc34b..eadf22a56 100644
--- a/mailbox/address.c
+++ b/mailbox/address.c
@@ -49,6 +49,8 @@ address_create (address_t *a, const char *s)
save = s;
e = &s[strlen (s)];
fb = calloc (1, 1);
+ if (!fb)
+ return ENOMEM;
/* We need to unfold the string. Do the same thing as parse822_field_body()
but we have to be more flexible in allowing bare '\n' as CRLF. */
@@ -69,11 +71,11 @@ address_create (address_t *a, const char *s)
fb[len + (eol - s)] = '\0';
s = eol;
- s += 2;
-
if (s == e)
break; /* no more, so we're done */
+ s += 2;
+
/* check if next line is a continuation line */
if (*s != ' ' && *s != '\t')
break;

Return to:

Send suggestions and report system problems to the System administrator.