aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/inet_pton.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/inet_pton.c b/lib/inet_pton.c
index 24820fe25..c79b46335 100644
--- a/lib/inet_pton.c
+++ b/lib/inet_pton.c
@@ -108,7 +108,8 @@ inet_pton4(const char *src, unsigned char *dst)
saw_digit = 0;
octets = 0;
- *(tp = tmp) = 0;
+ tp = tmp;
+ *tp = 0;
while ((ch = *src++) != '\0') {
const char *pch;