diff --git a/services/init/init_service_manager.c b/services/init/init_service_manager.c index 7603ea3c6c29063156e41349f2ee577a4fae9dc9..b667de754c0faa41e3ec97a3cdc3dcb826f4ecc3 100755 --- a/services/init/init_service_manager.c +++ b/services/init/init_service_manager.c @@ -1003,7 +1003,10 @@ void ParseAllServices(const cJSON *fileRoot) Service *service = GetServiceByName(fieldStr); if (service == NULL) { service = AddService(fieldStr); - INIT_ERROR_CHECK(service != NULL, continue, "Failed to add service name %s", fieldStr); + if (service == NULL) { + INIT_LOGE("Failed to add service name %s", fieldStr); + continue; + } } else { INIT_LOGI("Service %s already exists, updating.", fieldStr); #ifndef __MUSL__