Browse Source

only write if dest is non-NULL

master
Felix von Leitner 17 years ago
parent
commit
fdbb11a4e5
  1. 2
      socket/fmt_ip6.c

2
socket/fmt_ip6.c

@ -40,7 +40,7 @@ unsigned int fmt_ip6(char *s,const char ip[16])
}
}
}
if (compressing) { *s++=':'; ++len; }
if (compressing) { if (s) *s++=':'; ++len; }
/* if (s) *s=0; */
return len;

Loading…
Cancel
Save