Fixed uninitialized return value.

This commit is contained in:
Armin Novak 2019-01-29 16:53:30 +01:00
parent 6a1ff5c485
commit 0dae6933ce

View File

@ -873,7 +873,7 @@ UINT printer_register(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints,
rdpPrinter* printer)
{
PRINTER_DEVICE* printer_dev;
UINT error;
UINT error = ERROR_INTERNAL_ERROR;
printer_dev = (PRINTER_DEVICE*) calloc(1, sizeof(PRINTER_DEVICE));
if (!printer_dev)