From 399df205d8d10b4d7228697bc46d3cd3a54c43a2 Mon Sep 17 00:00:00 2001 From: shenwei41 Date: Sat, 5 Sep 2020 09:15:10 +0800 Subject: [PATCH] Alarm modification --- mindspore/ccsrc/minddata/dataset/core/config_manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/ccsrc/minddata/dataset/core/config_manager.cc b/mindspore/ccsrc/minddata/dataset/core/config_manager.cc index 24f2261ad1..67adfc22a1 100644 --- a/mindspore/ccsrc/minddata/dataset/core/config_manager.cc +++ b/mindspore/ccsrc/minddata/dataset/core/config_manager.cc @@ -36,10 +36,10 @@ ConfigManager::ConfigManager() cache_port_(kCfgDefaultCachePort) { auto env_cache_host = std::getenv("MS_CACHE_HOST"); auto env_cache_port = std::getenv("MS_CACHE_PORT"); - if (env_cache_host) { + if (env_cache_host != nullptr) { cache_host_ = env_cache_host; } - if (env_cache_port) { + if (env_cache_port != nullptr) { char *end = nullptr; cache_port_ = strtol(env_cache_port, &end, 10); if (*end != '\0') {