From 522809483e4479e63b39e00b9cc41a5ac4a6c068 Mon Sep 17 00:00:00 2001 From: cppla Date: Sat, 16 Jul 2022 19:11:29 +0800 Subject: [PATCH] Compatible with older versions config.json --- server/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main.cpp b/server/src/main.cpp index 1dd7981..46d4ac1 100644 --- a/server/src/main.cpp +++ b/server/src/main.cpp @@ -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 record,reset m_LastNetworkIN and m_LastNetworkOUT // support by: https://cpp.la