client/common/cmdline.c: remove redundant check

found by cppcheck

[client/common/cmdline.c:390] -> [client/common/cmdline.c:399]: (warning) Identical inner 'if' condition is always true.
This commit is contained in:
Ilya Shipitsin 2019-02-02 10:22:19 +05:00
parent 2693389a10
commit fb002574c3

View File

@ -396,13 +396,10 @@ BOOL freerdp_client_add_device_channel(rdpSettings* settings, int count,
printer->Type = RDPDR_DTYP_PRINT;
if (count > 1)
if (!(printer->Name = _strdup(params[1])))
{
if (!(printer->Name = _strdup(params[1])))
{
free(printer);
return FALSE;
}
free(printer);
return FALSE;
}
if (count > 2)