diff --git a/socket/fmt_ip6.c b/socket/fmt_ip6.c index a018884..20ab8b9 100644 --- a/socket/fmt_ip6.c +++ b/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;