]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
fixed some uninitialised variables
authorAndrew Tridgell <tridge@samba.org>
Tue, 1 May 2001 04:05:53 +0000 (04:05 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 1 May 2001 04:05:53 +0000 (04:05 +0000)
source/rpc_client/cli_lsarpc.c
source/utils/smbcacls.c

index 649be20a52f23d48ab821c12af22d5beff9209ab..c4e55c3749cd15aadf2d7026c6ceed4300c351da 100644 (file)
@@ -297,7 +297,7 @@ uint32 lsa_open_policy(const char *system_name, POLICY_HND *hnd,
        LSA_Q_OPEN_POL q_o;
        LSA_SEC_QOS qos;
        struct cli_connection *con = NULL;
-       uint32 result;
+       uint32 result = NT_STATUS_UNSUCCESSFUL;
 
        if (!cli_connection_init(system_name, PIPE_LSARPC, &con)) {
                return NT_STATUS_UNSUCCESSFUL;
@@ -365,7 +365,7 @@ uint32 lsa_close(POLICY_HND *hnd)
         prs_struct rbuf;
         prs_struct buf;
         LSA_Q_CLOSE q_c;
-       uint32 result;
+       uint32 result = NT_STATUS_UNSUCCESSFUL;
 
         if (hnd == NULL) return False;
 
@@ -419,7 +419,7 @@ uint32 lsa_lookup_sids(POLICY_HND *hnd, int num_sids, DOM_SID *sids,
        prs_struct buf;
        LSA_Q_LOOKUP_SIDS q_l;
        TALLOC_CTX *ctx = talloc_init();
-       uint32 result;
+       uint32 result = NT_STATUS_UNSUCCESSFUL;
 
        ZERO_STRUCT(q_l);
 
@@ -454,7 +454,7 @@ uint32 lsa_lookup_sids(POLICY_HND *hnd, int num_sids, DOM_SID *sids,
                LSA_R_LOOKUP_SIDS r_l;
                DOM_R_REF ref;
                LSA_TRANS_NAME_ENUM t_names;
-               BOOL p, valid_response;
+               BOOL p, valid_response = False;
 
                r_l.dom_ref = &ref;
                r_l.names = &t_names;
@@ -576,7 +576,7 @@ uint32 lsa_lookup_names(POLICY_HND *hnd, int num_names, char **names,
        LSA_Q_LOOKUP_NAMES q_l;
        BOOL valid_response = False;
        TALLOC_CTX *ctx = talloc_init();
-       uint32 result;
+       uint32 result = NT_STATUS_UNSUCCESSFUL;
 
        if (hnd == NULL || num_sids == 0 || sids == NULL) return False;
 
index 3566ccb28c4570953d148a3fd51807ba323b3f86..66b15ea1acc03e010a79147d9b61f515a373b96e 100644 (file)
@@ -817,7 +817,7 @@ You can string acls together with spaces, commas or newlines\n\
        char *p;
        static pstring servicesf = CONFIGFILE;
        struct cli_state *cli=NULL;
-       enum acl_mode mode;
+       enum acl_mode mode = 0;
        char *the_acl = NULL;
        enum chown_mode change_mode = REQUEST_NONE;
        int result;