mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-02 08:57:19 -04:00
[xhr] false when init_string fails
This commit is contained in:
parent
ec1b71d208
commit
5f682c5a71
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user