summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-02-05 13:36:17 -0800
committerJeremy Allison <jra@samba.org>2008-02-05 13:36:17 -0800
commit47666c93a78dc7a9c18212bfe7be3e6487313226 (patch)
tree3488726bfb25d51fac4fc9a11bf3d7badad13cf0
parentabe2fd76977d472b044f30b522aa9c114db089fc (diff)
downloadsamba-47666c93a78dc7a9c18212bfe7be3e6487313226.tar.gz
samba-47666c93a78dc7a9c18212bfe7be3e6487313226.tar.bz2
samba-47666c93a78dc7a9c18212bfe7be3e6487313226.zip
Fix a couple of "might be used uninitialized" warnings.
Jeremy. (This used to be commit b3ac8073a23afbba19d045302aa0700197c58bd5)
-rw-r--r--source3/smbd/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 2a643864fa..68bec7830a 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -324,7 +324,7 @@ static NTSTATUS receive_smb_talloc(TALLOC_CTX *mem_ctx, int fd,
size_t *p_unread, bool *p_encrypted,
size_t *p_len)
{
- size_t len;
+ size_t len = 0;
NTSTATUS status;
*p_encrypted = false;
@@ -719,7 +719,7 @@ static NTSTATUS receive_message_or_smb(TALLOC_CTX *mem_ctx, char **buffer,
int selrtn;
struct timeval to;
int maxfd = 0;
- size_t len;
+ size_t len = 0;
NTSTATUS status;
*p_unread = 0;