aboutsummaryrefslogtreecommitdiff
path: root/lib/inet_pton.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-08-19 09:37:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-08-19 09:37:22 +0000
commit566f7b5e5856f73eb970834a1635e501a3af5eb4 (patch)
treeb3369154489730f3c9022edf9dc49f727e3b1837 /lib/inet_pton.c
parentc8c47768c76aac020adc2a7ebf5e45e3ea95abd9 (diff)
simplified expression
Diffstat (limited to 'lib/inet_pton.c')
-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;