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)
{
rdpPrinter* current = printers[num_printers];
current = printer_cups_new_printer((rdpCupsPrinterDriver*)driver, dest->name, NULL,
dest->is_default);
rdpPrinter* current = printer_cups_new_printer((rdpCupsPrinterDriver*)driver,
dest->name, NULL, dest->is_default);
if (!current)
{
printer_cups_release_enum_printers(printers);