From 125091ad05ad1eab13ed5a61a8e5807d9b2ed756 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Tue, 1 Mar 2022 11:14:28 +0800 Subject: [PATCH] feature/qnode --- source/common/src/tname.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/common/src/tname.c b/source/common/src/tname.c index 5e5816229f..e061862856 100644 --- a/source/common/src/tname.c +++ b/source/common/src/tname.c @@ -122,9 +122,7 @@ int32_t tNameExtractFullName(const SName* name, char* dst) { return -1; } - int32_t len = 0; - - snprintf(dst, TSDB_DB_FNAME_LEN, "%d.%s", name->acctId, name->dbname); + int32_t len = snprintf(dst, TSDB_DB_FNAME_LEN, "%d.%s", name->acctId, name->dbname); size_t tnameLen = strlen(name->tname); if (tnameLen > 0) { -- GitLab