diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ippeveprinter.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/ippeveprinter.c b/tools/ippeveprinter.c index 4f3a89161..7892d656f 100644 --- a/tools/ippeveprinter.c +++ b/tools/ippeveprinter.c @@ -7430,8 +7430,8 @@ show_supplies( num_supply; /* Number of supplies */ ipp_attribute_t *supply, /* printer-supply attribute */ *supply_desc; /* printer-supply-description attribute */ - int num_options; /* Number of form options */ - cups_option_t *options; /* Form options */ + int num_options = 0; /* Number of form options */ + cups_option_t *options = NULL; /* Form options */ int supply_len, /* Length of supply value */ level; /* Supply level */ const char *supply_value; /* Supply value */ @@ -7498,8 +7498,6 @@ show_supplies( if (printer->web_forms) num_options = parse_options(client, &options); - else - num_options = 0; if (num_options > 0) { |