mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Silence cppcheck false positive.
This commit is contained in:
parent
0cdf4407df
commit
c382071381
@ -89,6 +89,7 @@ inet_pton4(const char *src, u_char *dst)
|
||||
|
||||
saw_digit = 0;
|
||||
octets = 0;
|
||||
/* cppcheck-suppress uninitvar */
|
||||
*(tp = tmp) = '\0';
|
||||
while ((ch = (unsigned char)*src++) != '\0') {
|
||||
const char *pch;
|
||||
@ -142,6 +143,7 @@ inet_pton6(const char *src, u_char *dst)
|
||||
int ch, saw_xdigit, count_xdigit;
|
||||
u_int val;
|
||||
|
||||
/* cppcheck-suppress uninitvar */
|
||||
memset((tp = tmp), 0, NS_IN6ADDRSZ);
|
||||
endp = tp + NS_IN6ADDRSZ;
|
||||
colonp = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user