summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-07-23 08:46:51 +0200
committerJeremy Allison <jra@samba.org>2021-08-06 17:22:30 +0000
commit621f561a9c2c3fa905211643ae18cceb92ca5dea (patch)
tree7f8d38c1ed5f216d9b4b636ae3951d0d07f0e9a3 /source3/rpc_client
parentfa8c0379b50f675e0f072a27448bf2c8c3d7b3d0 (diff)
downloadsamba-621f561a9c2c3fa905211643ae18cceb92ca5dea.tar.gz
lib;smbd: Fix the -Os build by initializing variables
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_winreg_spoolss.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source3/rpc_client/cli_winreg_spoolss.c b/source3/rpc_client/cli_winreg_spoolss.c
index 8270771c79b..ca46ae53012 100644
--- a/source3/rpc_client/cli_winreg_spoolss.c
+++ b/source3/rpc_client/cli_winreg_spoolss.c
@@ -3699,11 +3699,11 @@ WERROR winreg_get_driver(TALLOC_CTX *mem_ctx,
{
uint32_t access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
struct policy_handle hive_hnd, key_hnd;
- struct spoolss_DriverInfo8 i8, *info8;
+ struct spoolss_DriverInfo8 i8, *info8 = NULL;
struct spoolss_PrinterEnumValues *enum_values = NULL;
- struct spoolss_PrinterEnumValues *v;
+ struct spoolss_PrinterEnumValues *v = NULL;
uint32_t num_values = 0;
- TALLOC_CTX *tmp_ctx;
+ TALLOC_CTX *tmp_ctx = NULL;
WERROR result;
NTSTATUS status;
uint32_t i;
@@ -4168,15 +4168,15 @@ WERROR winreg_get_core_driver(TALLOC_CTX *mem_ctx,
{
uint32_t access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
struct policy_handle hive_hnd, key_hnd;
- struct spoolss_CorePrinterDriver *c;
+ struct spoolss_CorePrinterDriver *c = NULL;
struct spoolss_PrinterEnumValues *enum_values = NULL;
- struct spoolss_PrinterEnumValues *v;
+ struct spoolss_PrinterEnumValues *v = NULL;
uint32_t num_values = 0;
- TALLOC_CTX *tmp_ctx;
+ TALLOC_CTX *tmp_ctx = NULL;
WERROR result;
NTSTATUS status;
- const char *path;
- const char *guid_str;
+ const char *path = NULL;
+ const char *guid_str = NULL;
uint32_t i;
const char **enum_names = NULL;
enum winreg_Type *enum_types = NULL;
@@ -4505,12 +4505,12 @@ WERROR winreg_get_driver_package(TALLOC_CTX *mem_ctx,
uint32_t access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
struct policy_handle hive_hnd, key_hnd;
struct spoolss_PrinterEnumValues *enum_values = NULL;
- struct spoolss_PrinterEnumValues *v;
+ struct spoolss_PrinterEnumValues *v = NULL;
uint32_t num_values = 0;
- TALLOC_CTX *tmp_ctx;
+ TALLOC_CTX *tmp_ctx = NULL;
WERROR result;
NTSTATUS status;
- const char *path;
+ const char *path = NULL;
uint32_t i;
const char **enum_names = NULL;
enum winreg_Type *enum_types = NULL;