A litle oops corrected.
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -49,6 +49,8 @@ address_create (address_t *a, const char *s) | ... | @@ -49,6 +49,8 @@ address_create (address_t *a, const char *s) |
49 | save = s; | 49 | save = s; |
50 | e = &s[strlen (s)]; | 50 | e = &s[strlen (s)]; |
51 | fb = calloc (1, 1); | 51 | fb = calloc (1, 1); |
52 | if (!fb) | ||
53 | return ENOMEM; | ||
52 | 54 | ||
53 | /* We need to unfold the string. Do the same thing as parse822_field_body() | 55 | /* We need to unfold the string. Do the same thing as parse822_field_body() |
54 | but we have to be more flexible in allowing bare '\n' as CRLF. */ | 56 | 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) | ... | @@ -69,11 +71,11 @@ address_create (address_t *a, const char *s) |
69 | fb[len + (eol - s)] = '\0'; | 71 | fb[len + (eol - s)] = '\0'; |
70 | 72 | ||
71 | s = eol; | 73 | s = eol; |
72 | s += 2; | ||
73 | |||
74 | if (s == e) | 74 | if (s == e) |
75 | break; /* no more, so we're done */ | 75 | break; /* no more, so we're done */ |
76 | 76 | ||
77 | s += 2; | ||
78 | |||
77 | /* check if next line is a continuation line */ | 79 | /* check if next line is a continuation line */ |
78 | if (*s != ' ' && *s != '\t') | 80 | if (*s != ' ' && *s != '\t') |
79 | break; | 81 | break; | ... | ... |
-
Please register or sign in to post a comment