From 4dc0c1b88be359cbf4e5273e1670ef0f87b9e36b Mon Sep 17 00:00:00 2001 From: James Peach Date: Sat, 22 Dec 2007 14:10:06 -0800 Subject: Fix "may be used uninitialized" compiler warnings. (This used to be commit 22ac34a329c9be9cf7d1e6749ebcfb50215378e4) --- source3/auth/auth_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') 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; -- cgit