initialise fsp->fd to -1
authorAndrew Tridgell <tridge@samba.org>
Mon, 10 Apr 2000 13:12:04 +0000 (13:12 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 10 Apr 2000 13:12:04 +0000 (13:12 +0000)
source/smbd/files.c

index 127d2fcac9f5bcd8440330b9bb6fb3c40dad7226..e971de095b7237ee5891b14901c7f98788a93b20 100644 (file)
@@ -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;