passdb: Fix the O3 developer build
authorVolker Lendecke <vl@samba.org>
Mon, 16 Mar 2015 06:45:28 +0000 (07:45 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 17 Mar 2015 10:29:38 +0000 (11:29 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Mar 17 11:29:38 CET 2015 on sn-devel-104

source3/passdb/pdb_interface.c

index b8247f25952035e2b090ce5e37c628116a475bed..3a3fe2e440b3698cfb306d6f82e159a0ce8b9c89 100644 (file)
@@ -1505,8 +1505,8 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods,
        if (sid_peek_check_rid(get_global_sam_sid(), sid, &rid)) {
                const char *name;
                enum lsa_SidType type;
-               uid_t uid;
-               gid_t gid;
+               uid_t uid = (uid_t)-1;
+               gid_t gid = (gid_t)-1;
                /* Here we might have users as well as groups and aliases */
                ret = lookup_global_sam_rid(mem_ctx, rid, &name, &type, &uid, &gid);
                if (ret) {