svn commit: samba r8833 - branches/SAMBA_3_0/source/rpc_client branches/SAMBA_3_0/source/utils trunk/source/rpc_client trunk/source/utils

vlendec at samba.org vlendec at samba.org
Thu Jul 28 15:01:31 GMT 2005


Author: vlendec
Date: 2005-07-28 15:01:29 +0000 (Thu, 28 Jul 2005)
New Revision: 8833

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8833

Log:
Fix some uninitialized variables.

Volker

Modified:
   branches/SAMBA_3_0/source/rpc_client/cli_spoolss.c
   branches/SAMBA_3_0/source/utils/net_rpc.c
   trunk/source/rpc_client/cli_spoolss.c
   trunk/source/utils/net_rpc.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_client/cli_spoolss.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_client/cli_spoolss.c	2005-07-28 14:37:54 UTC (rev 8832)
+++ branches/SAMBA_3_0/source/rpc_client/cli_spoolss.c	2005-07-28 15:01:29 UTC (rev 8833)
@@ -1467,7 +1467,7 @@
 	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 @@
 	prs_struct qbuf, rbuf;
 	SPOOL_Q_ENUMPRINTERKEY in;
 	SPOOL_R_ENUMPRINTERKEY out;
-	uint32 offered;
+	uint32 offered = 0;
 
 	ZERO_STRUCT(in);
 	ZERO_STRUCT(out);

Modified: branches/SAMBA_3_0/source/utils/net_rpc.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_rpc.c	2005-07-28 14:37:54 UTC (rev 8832)
+++ branches/SAMBA_3_0/source/utils/net_rpc.c	2005-07-28 15:01:29 UTC (rev 8833)
@@ -5104,7 +5104,7 @@
 {
 	NTSTATUS nt_status;
 	LSA_TRUSTED_DOMAIN_INFO *info;
-	char *cleartextpwd;
+	char *cleartextpwd = NULL;
 	DATA_BLOB data;
 	smb_ucs2_t *uni_dom_name;
 

Modified: trunk/source/rpc_client/cli_spoolss.c
===================================================================
--- trunk/source/rpc_client/cli_spoolss.c	2005-07-28 14:37:54 UTC (rev 8832)
+++ trunk/source/rpc_client/cli_spoolss.c	2005-07-28 15:01:29 UTC (rev 8833)
@@ -1467,7 +1467,7 @@
 	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 @@
 	prs_struct qbuf, rbuf;
 	SPOOL_Q_ENUMPRINTERKEY in;
 	SPOOL_R_ENUMPRINTERKEY out;
-	uint32 offered;
+	uint32 offered = 0;
 
 	ZERO_STRUCT(in);
 	ZERO_STRUCT(out);

Modified: trunk/source/utils/net_rpc.c
===================================================================
--- trunk/source/utils/net_rpc.c	2005-07-28 14:37:54 UTC (rev 8832)
+++ trunk/source/utils/net_rpc.c	2005-07-28 15:01:29 UTC (rev 8833)
@@ -5104,7 +5104,7 @@
 {
 	NTSTATUS nt_status;
 	LSA_TRUSTED_DOMAIN_INFO *info;
-	char *cleartextpwd;
+	char *cleartextpwd = NULL;
 	DATA_BLOB data;
 	smb_ucs2_t *uni_dom_name;
 



More information about the samba-cvs mailing list