From 2f4bb85be50b56acacd822f08d0fde19daff2d90 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 7 Apr 2004 11:46:00 +0000 Subject: r114: - remember to initialise open_files - use talloc_p when possible (This used to be commit db7f7ac165ded15f0b8157eb899ea6828a033da9) --- source4/ntvfs/simple/vfs_simple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/ntvfs/simple') diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c index 4802c11d6a..c2ad7d7aa4 100644 --- a/source4/ntvfs/simple/vfs_simple.c +++ b/source4/ntvfs/simple/vfs_simple.c @@ -47,12 +47,13 @@ static NTSTATUS svfs_connect(struct request_context *req, const char *sharename) struct tcon_context *conn = req->conn; struct svfs_private *private; - conn->ntvfs_private = talloc(conn->mem_ctx, sizeof(struct svfs_private)); + conn->ntvfs_private = talloc_p(conn->mem_ctx, struct svfs_private); private = conn->ntvfs_private; private->next_search_handle = 0; private->connectpath = talloc_strdup(conn->mem_ctx, lp_pathname(conn->service)); + private->open_files = NULL; /* the directory must exist */ if (stat(private->connectpath, &st) != 0 || !S_ISDIR(st.st_mode)) { -- cgit