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>
bool print_server,
const char *form_name)
{
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;
bool found = false;
int i;
for (i=0; i < ARRAY_SIZE(values); i++) {
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 ecount;
struct spoolss_PrinterEnumValues *einfo;
if (torture_setting_bool(tctx, "samba3", false)) {
char *q;
if (torture_setting_bool(tctx, "samba3", false)) {
char *q;