mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05: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;
|
||||
if (!init_string(&post)) {
|
||||
mem_free(body);
|
||||
return false;
|
||||
}
|
||||
|
||||
add_to_string(&post, "text/plain\n");
|
||||
|
Loading…
Reference in New Issue
Block a user