1
0
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:
Witold Filipczyk 2022-01-04 17:31:07 +01:00
parent b0b0fef12a
commit 411492e4cb

View File

@ -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);