fix pg_vfs_dirio_readdir not initializing some VFS_ENTRY fields webdav

Wed, 11 May 2022 20:41:39 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 11 May 2022 20:41:39 +0200
branch
webdav
changeset 353
382d6c221807
parent 352
d0a7ef49db0f
child 354
017eda1be105

fix pg_vfs_dirio_readdir not initializing some VFS_ENTRY fields

src/server/plugins/postgresql/vfs.c file | annotate | diff | comparison | revisions
--- a/src/server/plugins/postgresql/vfs.c	Wed May 11 20:41:10 2022 +0200
+++ b/src/server/plugins/postgresql/vfs.c	Wed May 11 20:41:39 2022 +0200
@@ -878,6 +878,8 @@
     }
     
     entry->name = PQgetvalue(pg->result, pg->row, 1);
+    entry->stat_errno = 0;
+    entry->stat_extra = NULL;
         
     if(getstat) {
         memset(&entry->stat, 0, sizeof(struct stat));

mercurial