]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
*++tp = 0; -> tp++; *tp = 0;
authorMark Andrews <marka@isc.org>
Mon, 29 Aug 2011 05:58:31 +0000 (05:58 +0000)
committerMark Andrews <marka@isc.org>
Mon, 29 Aug 2011 05:58:31 +0000 (05:58 +0000)
lib/lwres/lwinetpton.c

index 5bbef083959736a7115556a85eba22ee8f5bf1b0..f7e61acdeeaac48dbad83566cb47417e59b4951d 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$Id: lwinetpton.c,v 1.12 2007/06/19 23:47:22 tbox Exp $";
+static char rcsid[] = "$Id: lwinetpton.c,v 1.13 2011/08/29 05:58:31 marka Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 #include <config.h>
@@ -103,7 +103,12 @@ inet_pton4(const char *src, unsigned char *dst) {
                } else if (ch == '.' && saw_digit) {
                        if (octets == 4)
                                return (0);
-                       *++tp = 0;
+                       /*
+                        * "clang --analyse" generates warnings using:
+                        *              *++tp = 0;
+                        */
+                       tp++;
+                       *tp = 0;
                        saw_digit = 0;
                } else
                        return (0);