summaryrefslogtreecommitdiff
path: root/inet_net_pton.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-12-27 13:13:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-12-27 13:13:19 +0100
commit39d7f64361fc5260df033c48811e61f24d198cbd (patch)
tree686c5d43b6d93ae9dc6790380a0f3f7515f419a0 /inet_net_pton.c
parent366cd6d54dfdf0d487f60333c45e9c7da9327050 (diff)
downloadc-ares-39d7f64361fc5260df033c48811e61f24d198cbd.tar.gz
c-ares-39d7f64361fc5260df033c48811e61f24d198cbd.tar.bz2
c-ares-39d7f64361fc5260df033c48811e61f24d198cbd.zip
getv4: Value stored to 'dst' is never read
Diffstat (limited to 'inet_net_pton.c')
-rw-r--r--inet_net_pton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inet_net_pton.c b/inet_net_pton.c
index d701a9f..aa6a59f 100644
--- a/inet_net_pton.c
+++ b/inet_net_pton.c
@@ -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