From 566f7b5e5856f73eb970834a1635e501a3af5eb4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 19 Aug 2004 09:37:22 +0000 Subject: [PATCH] simplified expression --- lib/inet_pton.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;