mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[gemini] Check return value of init_string
This commit is contained in:
parent
b0b0fef12a
commit
411492e4cb
@ -310,7 +310,9 @@ gemini_got_header(struct socket *socket, struct read_buffer *rb)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
init_string(&head_string);
|
if (!init_string(&head_string)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
add_to_string(&head_string, "\nContent-Type: ");
|
add_to_string(&head_string, "\nContent-Type: ");
|
||||||
add_bytes_to_string(&head_string, rb->data + 3, a - 2);
|
add_bytes_to_string(&head_string, rb->data + 3, a - 2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user