fix TestVFSFile ctx initialization webdav

Sun, 01 May 2022 11:14:47 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 01 May 2022 11:14:47 +0200
branch
webdav
changeset 323
dc5b0fee49df
parent 322
f26bd6e17594
child 324
44cf877b3d9f

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;
             

mercurial