1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-06 23:44:43 -04:00

[xhr] false when init_string fails

This commit is contained in:
Witold Filipczyk 2022-10-23 18:26:49 +02:00
parent ec1b71d208
commit 5f682c5a71

View File

@ -825,6 +825,7 @@ xhr_send(JSContext *ctx, unsigned int argc, JS::Value *rval)
struct string post; struct string post;
if (!init_string(&post)) { if (!init_string(&post)) {
mem_free(body); mem_free(body);
return false;
} }
add_to_string(&post, "text/plain\n"); add_to_string(&post, "text/plain\n");