diff --git a/src/tsdb/src/tsdbFile.c b/src/tsdb/src/tsdbFile.c index d94f71fc2d1410e42dad42b9b7b3f0363e4939cf..91786de28a7de7e127f59936c19dde732c96f67f 100644 --- a/src/tsdb/src/tsdbFile.c +++ b/src/tsdb/src/tsdbFile.c @@ -683,7 +683,7 @@ int tsdbScanAndTryFixDFileSet(STsdbRepo *pRepo, SDFileSet *pSet) { } int tsdbParseDFilename(const char *fname, int *vid, int *fid, TSDB_FILE_T *ftype, uint32_t *_version) { - static const int MAX_SUFFIX_LEN = 10; +#define MAX_SUFFIX_LEN 10 char suffix[MAX_SUFFIX_LEN] = {0}; *_version = 0; *ftype = TSDB_FILE_MAX;