Panel should not crash without /proc/netif

This commit is contained in:
K. Lange 2018-09-30 16:03:55 +09:00
parent 75cd03a4a6
commit eabd917032

View File

@ -298,6 +298,8 @@ static char * netstat_mac = NULL;
static void update_network_status(void) {
FILE * net = fopen("/proc/netif","r");
if (!net) return;
char line[256];
do {