diff --git a/panel-plugin/net.c b/panel-plugin/net.c index 5ed8694..e4b66c3 100644 --- a/panel-plugin/net.c +++ b/panel-plugin/net.c @@ -217,7 +217,7 @@ char* get_ip_address(netdata* data) struct sockaddr_in *p_sa; /* use cached value if possible and if the update count is non-zero */ - if (data->ip_address && data->ip_update_count > 0) + if (data->ip_address[0] && data->ip_update_count > 0) { data->ip_update_count--; return data->ip_address;