1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

Show "No Address" instead of "::" when there is no address

This commit is contained in:
Nikolas Garofil 2012-01-09 11:20:53 +01:00
parent 2039d6232e
commit 59f79105bd

View File

@ -243,9 +243,7 @@ void print_v6addrs(struct text_object *obj, char *p, int p_max_size)
if(p_max_size == 0) return;
if( ! ns->v6addrs) {
strncpy(p, "::", p_max_size);
if(ns->v6show_nm) strncat(p, "/128", p_max_size);
if(ns->v6show_sc) strncat(p, "(/)", p_max_size);
snprintf(p, p_max_size, "No Address");
return;
}
*p=0;