commit | e3177af465e6e44961efa23f58775db700d8911a | [log] [tgz] |
---|---|---|
author | Aurelien DARRAGON <adarragon@haproxy.com> | Tue Nov 22 11:42:07 2022 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Tue Nov 22 16:27:52 2022 +0100 |
tree | 309554e48cb2bd8475d285807bf86e86702cb50e | |
parent | ac1ca5cc7b69df0c3cfc218ca5645b2f36bd8421 [diff] |
CLEANUP: tools: extra check in utoa_pad Removing useless check in utoa_pad(). This was reported by Ilya with the help of cppcheck.
diff --git a/src/tools.c b/src/tools.c index b5b6442..cfa1cc6 100644 --- a/src/tools.c +++ b/src/tools.c
@@ -421,8 +421,7 @@ } 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';