1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

s3:torture: Fix spoolss test to build with -O3

Initialize variables so that we do not get a build warning that they
might be used uninitilized.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12930

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Andreas Schneider 2017-08-09 08:23:29 +02:00 committed by Ralph Boehme
parent b5283c70e3
commit 1c3b678e7d

View File

@ -2667,8 +2667,8 @@ static bool test_EnumForms_find_one(struct torture_context *tctx,
bool print_server,
const char *form_name)
{
union spoolss_FormInfo *info;
uint32_t count;
union spoolss_FormInfo *info = NULL;
uint32_t count = 0;
bool found = false;
int i;
@ -5554,11 +5554,12 @@ static bool test_SetPrinterDataEx_values(struct torture_context *tctx,
for (i=0; i < ARRAY_SIZE(values); i++) {
enum winreg_Type type;
DATA_BLOB blob_in, blob_out;
enum winreg_Type type = REG_NONE;
DATA_BLOB blob_in = data_blob_null;
DATA_BLOB blob_out = data_blob_null;
uint32_t ecount;
struct spoolss_PrinterEnumValues *einfo;
uint32_t needed;
uint32_t needed = 0;
if (torture_setting_bool(tctx, "samba3", false)) {
char *q;