1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-26 16:45:12 -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;
if (!init_string(&post)) {
mem_free(body);
return false;
}
add_to_string(&post, "text/plain\n");