Fixed dead store warning.
This commit is contained in:
parent
c5e261e066
commit
fd968cdf84
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user