projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f79eeb7
)
Removed duplcate NULL checks.
author
Armin Novak
<armin.novak@thincast.com>
Thu, 22 Nov 2018 10:21:57 +0000
(11:21 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Thu, 22 Nov 2018 10:21:57 +0000
(11:21 +0100)
libfreerdp/common/assistance.c
patch
|
blob
|
history
diff --git
a/libfreerdp/common/assistance.c
b/libfreerdp/common/assistance.c
index
721e4ac
..
6161f36
100644
(file)
--- a/
libfreerdp/common/assistance.c
+++ b/
libfreerdp/common/assistance.c
@@
-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)