summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-12-22 14:10:06 -0800
committerJames Peach <jpeach@samba.org>2007-12-22 14:10:06 -0800
commit4dc0c1b88be359cbf4e5273e1670ef0f87b9e36b (patch)
tree28f490338e8aba749dd301eddf7756a192b75fba
parentbf2269a04e5af056037c392fb7f29014b62d1bb2 (diff)
downloadsamba-4dc0c1b88be359cbf4e5273e1670ef0f87b9e36b.tar.gz
samba-4dc0c1b88be359cbf4e5273e1670ef0f87b9e36b.tar.bz2
samba-4dc0c1b88be359cbf4e5273e1670ef0f87b9e36b.zip
Fix "may be used uninitialized" compiler warnings.
(This used to be commit 22ac34a329c9be9cf7d1e6749ebcfb50215378e4)
-rw-r--r--source3/auth/auth_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 373a2a375f..3f65e6b126 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1423,7 +1423,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
static const char zeros[16] = { 0, };
NTSTATUS nt_status = NT_STATUS_OK;
- char *found_username;
+ char *found_username = NULL;
const char *nt_domain;
const char *nt_username;
struct samu *sam_account = NULL;
@@ -1431,8 +1431,8 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
DOM_SID group_sid;
bool username_was_mapped;
- uid_t uid;
- gid_t gid;
+ uid_t uid = (uid_t)-1;
+ gid_t gid = (gid_t)-1;
auth_serversupplied_info *result;