fix: coverity scan proble

This commit is contained in:
yihaoDeng 2023-02-24 11:07:07 +08:00
parent 5025f1a38a
commit b5d4709374
1 changed files with 1 additions and 1 deletions

View File

@ -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)