From 2733f5352a384561b4df7ea14c5962f3cd079166 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Apr 2000 13:12:04 +0000 Subject: [PATCH] initialise fsp->fd to -1 (This used to be commit 5257ff5d67632922a64266ad2ce5d5a38c701cbc) --- source3/smbd/files.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 127d2fcac9f..e971de095b7 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -84,6 +84,7 @@ files_struct *file_new(void ) if (!fsp) return NULL; ZERO_STRUCTP(fsp); + fsp->fd = -1; first_file = (i+1) % real_max_open_files;