提交 b5d47093 编写于 作者: dengyihao's avatar dengyihao

fix: coverity scan proble

上级 5025f1a3
...@@ -229,7 +229,7 @@ static void cliWalkCb(uv_handle_t* handle, void* arg); ...@@ -229,7 +229,7 @@ static void cliWalkCb(uv_handle_t* handle, void* arg);
do { \ do { \
char* t = key; \ char* t = key; \
int16_t len = strlen(ip); \ int16_t len = strlen(ip); \
if (ip ! = NULL) memcpy(t, ip, len); \ if (ip != NULL) memcpy(t, ip, len); \
t[len] = ':'; \ t[len] = ':'; \
titoa(port, 10, &t[len + 1]); \ titoa(port, 10, &t[len + 1]); \
} while (0) } while (0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册