Fix "may be used uninitialized" compiler warnings.
authorJames Peach <jpeach@samba.org>
Sat, 22 Dec 2007 22:10:06 +0000 (14:10 -0800)
committerJames Peach <jpeach@samba.org>
Sat, 22 Dec 2007 22:10:06 +0000 (14:10 -0800)
(This used to be commit 22ac34a329c9be9cf7d1e6749ebcfb50215378e4)

source3/auth/auth_util.c

index 373a2a375fa40272fdbef4862eeef15953c106e5..3f65e6b12679753edd1ac10870ab4498f486f987 100644 (file)
@@ -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;