Removed duplcate NULL checks.

This commit is contained in:
Armin Novak
2018-11-22 11:21:57 +01:00
parent f79eeb7446
commit 7ba34962e6

View File

@@ -167,16 +167,13 @@ static BOOL append_address(rdpAssistanceFile* file, const char* host, const char
{
unsigned long p;
if (!file || !host || !port)
return FALSE;
errno = 0;
p = strtoul(port, NULL, 0);
if ((errno != 0) || (p == 0) || (p > UINT16_MAX))
return FALSE;
return reallocate(file, host, p);
return reallocate(file, host, (UINT16)p);
}
static BOOL freerdp_assistance_parse_address_list(rdpAssistanceFile* file, char* list)