Initialize the rootfh handle when creating the nfs context or else
[deb_libnfs.git] / lib / libnfs.c
index c3904bf8eed666dee1af3bc4ffd6a2c87ce3fc14..edaeca4df06fb3afdc6ecbc090494fe807663521 100644 (file)
@@ -147,6 +147,9 @@ struct nfs_context *nfs_init_context(void)
        nfs->server = NULL;
        nfs->export = NULL;
 
+       nfs->rootfh.data.data_len = 0;
+       nfs->rootfh.data.data_val = NULL;
+
        return nfs;
 }