2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Silence cppcheck false positive.

This commit is contained in:
Todd C. Miller 2014-02-17 13:45:17 -07:00
parent 0cdf4407df
commit c382071381

View File

@ -89,6 +89,7 @@ inet_pton4(const char *src, u_char *dst)
saw_digit = 0; saw_digit = 0;
octets = 0; octets = 0;
/* cppcheck-suppress uninitvar */
*(tp = tmp) = '\0'; *(tp = tmp) = '\0';
while ((ch = (unsigned char)*src++) != '\0') { while ((ch = (unsigned char)*src++) != '\0') {
const char *pch; const char *pch;
@ -142,6 +143,7 @@ inet_pton6(const char *src, u_char *dst)
int ch, saw_xdigit, count_xdigit; int ch, saw_xdigit, count_xdigit;
u_int val; u_int val;
/* cppcheck-suppress uninitvar */
memset((tp = tmp), 0, NS_IN6ADDRSZ); memset((tp = tmp), 0, NS_IN6ADDRSZ);
endp = tp + NS_IN6ADDRSZ; endp = tp + NS_IN6ADDRSZ;
colonp = NULL; colonp = NULL;