diff options
author | Alain Magloire <alainm@gnu.org> | 2001-05-20 04:10:02 +0000 |
---|---|---|
committer | Alain Magloire <alainm@gnu.org> | 2001-05-20 04:10:02 +0000 |
commit | c3f76eee2222a35197acb9bfbd03e272d5a51ad0 (patch) | |
tree | 064d94071498c4fdb4f518abf22a6c4ab74919c9 | |
parent | 890e5a0b7110e38e6a5ddf5e4a8611dccf4c28fa (diff) | |
download | mailutils-c3f76eee2222a35197acb9bfbd03e272d5a51ad0.tar.gz mailutils-c3f76eee2222a35197acb9bfbd03e272d5a51ad0.tar.bz2 |
A litle oops corrected.
-rw-r--r-- | mailbox/address.c | 6 |
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; |