Fixed dead store warning.

This commit is contained in:
Armin Novak 2019-11-25 10:32:05 +01:00
parent c5e261e066
commit fd968cdf84

View File

@ -326,9 +326,8 @@ static rdpPrinter** printer_cups_enum_printers(rdpPrinterDriver* driver)
{ {
if (dest->instance == NULL) if (dest->instance == NULL)
{ {
rdpPrinter* current = printers[num_printers]; rdpPrinter* current = printer_cups_new_printer((rdpCupsPrinterDriver*)driver,
current = printer_cups_new_printer((rdpCupsPrinterDriver*)driver, dest->name, NULL, dest->name, NULL, dest->is_default);
dest->is_default);
if (!current) if (!current)
{ {
printer_cups_release_enum_printers(printers); printer_cups_release_enum_printers(printers);