From: Michael R Sweet Date: Thu, 9 May 2019 01:47:34 +0000 (-0400) Subject: Another clang warning... X-Git-Tag: v2.3rc1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0f469a7cdd25cc2a94fbff2ea8ffe4aee541f73;p=thirdparty%2Fcups.git Another clang warning... --- diff --git a/tools/ippeveprinter.c b/tools/ippeveprinter.c index 4f3a89161b..7892d656f2 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) {