1
0
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:
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; 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);