summaryrefslogtreecommitdiffstats
path: root/source/smbd/files.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-10 13:12:04 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-10 13:12:04 +0000
commit5257ff5d67632922a64266ad2ce5d5a38c701cbc (patch)
tree8b6e685a4c31e2b721c815c0619b0e3728ff0555 /source/smbd/files.c
parentd9130377b297a7a12e953e11bf5d484d48e772e0 (diff)
downloadsamba-5257ff5d67632922a64266ad2ce5d5a38c701cbc.tar.gz
samba-5257ff5d67632922a64266ad2ce5d5a38c701cbc.tar.xz
samba-5257ff5d67632922a64266ad2ce5d5a38c701cbc.zip
initialise fsp->fd to -1
Diffstat (limited to 'source/smbd/files.c')
-rw-r--r--source/smbd/files.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/smbd/files.c b/source/smbd/files.c
index 127d2fcac9f..e971de095b7 100644
--- a/source/smbd/files.c
+++ b/source/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;