summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-22 09:22:14 +0100
committerVolker Lendecke <vl@samba.org>2008-01-22 09:23:34 +0100
commit2a78eb9c0d5f82b9d893509dff3932bde9799adf (patch)
treec26689b98b7458ba5e62a7364aacf3f57606f4fb
parent6a69bc3ef99349edf78b5dec9a029366985f23b9 (diff)
downloadsamba-2a78eb9c0d5f82b9d893509dff3932bde9799adf.tar.gz
samba-2a78eb9c0d5f82b9d893509dff3932bde9799adf.tar.bz2
samba-2a78eb9c0d5f82b9d893509dff3932bde9799adf.zip
Fix a ton of IBM checker uninitialized variable warnings
SET_STAT_INVALID only sets nlink, not the other fields We might consider to change SET_STAT_INVALID to always do ZERO_STRUCT (This used to be commit 8cf8c5b2034fe093b5db7f069bc6be8d328399bf)
-rw-r--r--source3/smbd/open.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 9fca38e3ed..aa4bc48f3d 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3034,8 +3034,7 @@ NTSTATUS create_file(connection_struct *conn,
goto fail;
}
- SET_STAT_INVALID(sbuf);
-
+ ZERO_STRUCT(sbuf);
goto done;
}
}