mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-21 13:02:55 +00:00
CLEANUP: tools: extra check in utoa_pad
Removing useless check in utoa_pad(). This was reported by Ilya with the help of cppcheck.
This commit is contained in:
parent
ac1ca5cc7b
commit
e3177af465
@ -421,8 +421,7 @@ char *utoa_pad(unsigned int n, char *dst, size_t size)
|
||||
}
|
||||
if (i + 2 > size) // (i + 1) + '\0'
|
||||
return NULL; // too long
|
||||
if (i < size)
|
||||
i = size - 2; // padding - '\0'
|
||||
i = size - 2; // padding - '\0'
|
||||
|
||||
ret = dst + i + 1;
|
||||
*ret = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user