Skip to content

Commit

Permalink
Initialize length to len(fds)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Sep 19, 2024
1 parent 51583c4 commit a3c6db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickjs/ckb_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ static JSValue syscall_pipe(JSContext *ctx, JSValueConst this_value, int argc, J
static JSValue syscall_inherited_fds(JSContext *ctx, JSValueConst this_value, int argc, JSValueConst *argv) {
int err = 0;
uint64_t fds[32];
uint64_t length;
uint64_t length = 32;
err = ckb_inherited_fds(fds, &length);
CHECK(err);
JSValue obj = JS_NewArray(ctx);
Expand Down

0 comments on commit a3c6db3

Please sign in to comment.