diff options
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/samsync.c | 2 | ||||
-rw-r--r-- | source4/torture/rpc/spoolss.c | 15 |
2 files changed, 10 insertions, 7 deletions
diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c index 2c18e0d502e..e71faf899a5 100644 --- a/source4/torture/rpc/samsync.c +++ b/source4/torture/rpc/samsync.c @@ -463,7 +463,7 @@ static bool samsync_handle_user(struct torture_context *tctx, TALLOC_CTX *mem_ct { uint32_t rid = delta->delta_id_union.rid; struct netr_DELTA_USER *user = delta->delta_union.user; - struct netr_SamInfo3 *info3; + struct netr_SamInfo3 *info3 = NULL; struct samr_Password lm_hash; struct samr_Password nt_hash; struct samr_Password *lm_hash_p = NULL; diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 23f501d7401..ebe7c0939f0 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -4118,9 +4118,12 @@ static bool test_GetPrinterData_list(struct torture_context *tctx, int i; for (i=0; i < ARRAY_SIZE(list); i++) { - enum winreg_Type type, type_ex; - uint8_t *data, *data_ex; - uint32_t needed, needed_ex; + enum winreg_Type type = REG_NONE; + enum winreg_Type type_ex= REG_NONE; + uint8_t *data; + uint8_t *data_ex = NULL; + uint32_t needed; + uint32_t needed_ex = 0; torture_assert(tctx, test_GetPrinterData(tctx, b, &ctx->server_handle, list[i], &type, &data, &needed), talloc_asprintf(tctx, "GetPrinterData failed on %s\n", list[i])); @@ -6064,9 +6067,9 @@ static bool test_GetChangeID_PrinterDataEx(struct torture_context *tctx, struct policy_handle *handle, uint32_t *change_id) { - enum winreg_Type type; - uint8_t *data; - uint32_t needed; + enum winreg_Type type = REG_NONE; + uint8_t *data = NULL; + uint32_t needed = 0; torture_assert(tctx, test_GetPrinterDataEx(tctx, p, handle, "PrinterDriverData", "ChangeID", &type, &data, &needed), |