r8833: Fix some uninitialized variables.
authorVolker Lendecke <vlendec@samba.org>
Thu, 28 Jul 2005 15:01:29 +0000 (15:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:00:18 +0000 (11:00 -0500)
Volker
(This used to be commit 503a58b6be1972bea0804fab82aee1d814f6d522)

source3/rpc_client/cli_spoolss.c
source3/utils/net_rpc.c

index 7ebae0868fa32eb79dafecd2b99f0da305333390..f2df763b4fe13676427f965bee6c4d4dbd3fe654 100644 (file)
@@ -1467,7 +1467,7 @@ WERROR cli_spoolss_getprinterdataex(struct cli_state *cli, TALLOC_CTX *mem_ctx,
        prs_struct qbuf, rbuf;
        SPOOL_Q_GETPRINTERDATAEX in;
        SPOOL_R_GETPRINTERDATAEX out;
-       uint32 offered;
+       uint32 offered = 0;
 
        ZERO_STRUCT(in);
        ZERO_STRUCT(out);
@@ -1753,7 +1753,7 @@ WERROR cli_spoolss_enumprinterkey(struct cli_state *cli, TALLOC_CTX *mem_ctx,
        prs_struct qbuf, rbuf;
        SPOOL_Q_ENUMPRINTERKEY in;
        SPOOL_R_ENUMPRINTERKEY out;
-       uint32 offered;
+       uint32 offered = 0;
 
        ZERO_STRUCT(in);
        ZERO_STRUCT(out);
index 3f92404dda244b881eb9dd9b1eae1fdfaecf21e4..1c44e79f3026bfbb391120e61d9ab946751b8e3a 100644 (file)
@@ -5104,7 +5104,7 @@ static NTSTATUS vampire_trusted_domain(struct cli_state *cli,
 {
        NTSTATUS nt_status;
        LSA_TRUSTED_DOMAIN_INFO *info;
-       char *cleartextpwd;
+       char *cleartextpwd = NULL;
        DATA_BLOB data;
        smb_ucs2_t *uni_dom_name;