summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-05-08 21:45:46 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-05-08 21:45:46 -0400
commitf4f96318978baec0b903dfc25c761fffb663e9ae (patch)
tree73e8a3a066b4c387933e6491b39637c465a69987 /tools
parent3408121d8c23f2c58240b84c1a0fa62a1b464f69 (diff)
downloadcups-f4f96318978baec0b903dfc25c761fffb663e9ae.tar.gz
Fix another clang warning.
Update Xcode project for new location of tools.
Diffstat (limited to 'tools')
-rw-r--r--tools/ippeveprinter.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/ippeveprinter.c b/tools/ippeveprinter.c
index 19b0d5711..4f3a89161 100644
--- a/tools/ippeveprinter.c
+++ b/tools/ippeveprinter.c
@@ -7032,8 +7032,8 @@ show_media(ippeve_client_t *client) /* I - Client connection */
*tray_ptr; /* Pointer into value */
int tray_len; /* Length of printer-input-tray value */
int ready_sheets; /* printer-input-tray sheets value */
- 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 */
static const int sheets[] = /* Number of sheets */
{
250,
@@ -7106,8 +7106,6 @@ show_media(ippeve_client_t *client) /* I - Client connection */
if (printer->web_forms)
num_options = parse_options(client, &options);
- else
- num_options = 0;
if (num_options > 0)
{