quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

commit b7a1dc13b2b6bbc956a02bebf81d93b1ab31c179
parent ed427f3c68a0edab9265744d06ce01ddfa81fbab
Author: Florian Dold <florian@dold.me>
Date:   Tue, 17 Jun 2025 00:18:53 +0200

handle NULL result of js_new_http_message_pipe

Diffstat:
Mmeson.build | 2+-
Mquickjs/quickjs-libc.c | 5++++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build @@ -2,7 +2,7 @@ project('quickjs-tart', 'c', version : '0.0.1', meson_version: '>=0.6.1', default_options : [ - 'warning_level=0', + 'warning_level=1', 'optimization=2', ], ) diff --git a/quickjs/quickjs-libc.c b/quickjs/quickjs-libc.c @@ -4782,10 +4782,13 @@ oom_fail: init_list_head(&ts->port_list); ts->on_host_message_func = JS_NULL; ts->host_pipe = js_new_host_message_pipe(); - ts->http_pipe = js_new_http_message_pipe(); if (!ts->host_pipe) { goto oom_fail; } + ts->http_pipe = js_new_http_message_pipe(); + if (!ts->http_pipe) { + goto oom_fail; + } ts->next_timer_id = 1;