Skip to content

Commit 2f2419a

Browse files
committed
fixup!
1 parent b9ab192 commit 2f2419a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ static JSValue tjs_fs_readfile(JSContext *ctx, JSValueConst this_val, int argc,
11301130
}
11311131

11321132
fr->ctx = ctx;
1133-
dbuf_init(&fr->dbuf);
1133+
dbuf_init2(&fr->dbuf, JS_GetRuntime(ctx), (DynBufReallocFunc *)js_realloc_rt);
11341134
fr->r = -1;
11351135
fr->filename = js_strdup(ctx, path);
11361136
fr->req.data = fr;

0 commit comments

Comments
 (0)