mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -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;
|
||||
}
|
||||
|
||||
init_string(&head_string);
|
||||
if (!init_string(&head_string)) {
|
||||
return;
|
||||
}
|
||||
add_to_string(&head_string, "\nContent-Type: ");
|
||||
add_bytes_to_string(&head_string, rb->data + 3, a - 2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user