getv4: Value stored to 'dst' is never read
authorDaniel Stenberg <daniel@haxx.se>
Mon, 27 Dec 2010 12:13:19 +0000 (13:13 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Dec 2010 12:13:19 +0000 (13:13 +0100)
inet_net_pton.c

index d701a9f807b0df321db37435456a116dffe0fc3e..aa6a59f82a68e24ccc6e8be5f85b56379750c074 100644 (file)
@@ -271,8 +271,8 @@ getv4(const char *src, unsigned char *dst, int *bitsp)
     return (0);
   if (dst - odst > 3)             /* too many octets? */
     return (0);
-  *dst++ = (unsigned char)val;
-  return (1);
+  *dst = (unsigned char)val;
+  return 1;
 }
 
 static int