]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
simplified expression
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Aug 2004 09:37:22 +0000 (09:37 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 19 Aug 2004 09:37:22 +0000 (09:37 +0000)
lib/inet_pton.c

index 24820fe2534d1aeb7077674b426117ea08476e56..c79b46335b4cd7e306a2b32f326b3b750766b126 100644 (file)
@@ -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;