]> granicus.if.org Git - sudo/commitdiff
Silence cppcheck false positive.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Feb 2014 20:45:17 +0000 (13:45 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Feb 2014 20:45:17 +0000 (13:45 -0700)
compat/inet_pton.c

index 9855f64776e6a2451e38bc09ab7122f38fb03893..a4e0fafd95f3ecf5d82aa9d86fb162a90c0ddfc4 100644 (file)
@@ -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;