Compatible with older versions config.json

pull/189/head
cppla 2022-07-16 19:11:29 +08:00
parent 9d706f4da8
commit 522809483e
1 changed files with 2 additions and 1 deletions

View File

@ -557,7 +557,8 @@ int CMain::ReadConfig()
ID++;
}
str_copy(Watchdog(ID)->m_aName, "NULL", sizeof(Watchdog(ID)->m_aName));
}
} else
str_copy(Watchdog(ID)->m_aName, "NULL", sizeof(Watchdog(ID)->m_aName));
// if file exists, read last network traffic recordreset m_LastNetworkIN and m_LastNetworkOUT
// support by: https://cpp.la