only write if dest is non-NULL

master
leitner 20 years ago
parent 11f796ebb6
commit 10658ebe60

@ -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; */ /* if (s) *s=0; */
return len; return len;

Loading…
Cancel
Save