Sun, 01 May 2022 11:14:47 +0200
fix TestVFSFile ctx initialization
src/server/test/vfs.c | file | annotate | diff | comparison | revisions |
--- a/src/server/test/vfs.c Sun May 01 11:07:31 2022 +0200 +++ b/src/server/test/vfs.c Sun May 01 11:14:47 2022 +0200 @@ -190,6 +190,7 @@ if((oflags & O_CREAT) == O_CREAT) { file = pool_malloc(ctx->sn->pool, sizeof(TestVFSFile)); ZERO(file, sizeof(TestVFSFile)); + file->file.ctx = ctx; file->path = sstrdup_a(session_get_allocator(ctx->sn), s_path); file->file.io = &test_file_io;