diff --git a/src/client/tests/setConfigTest.cpp b/src/client/tests/setConfigTest.cpp index b384c07f74c216ba7c98745645085a08b1bf8c74..63cda16bb557d4584e137926467a644463d745a6 100644 --- a/src/client/tests/setConfigTest.cpp +++ b/src/client/tests/setConfigTest.cpp @@ -20,6 +20,6 @@ TEST(testCase, set_config_test) { SGlobalCfg *cfg = taosGetConfigOption("debugFlag"); ASSERT_EQ(cfg->cfgStatus, TAOS_CFG_CSTATUS_OPTION); - int32_t result = *(int32_t*)cfg.ptr; + int32_t result = *(int32_t*)cfg->ptr; ASSERT_EQ(result, 131); }