This commit is contained in:
Hongze Cheng 2020-06-17 07:55:52 +00:00
parent b71ec85236
commit cd062fdbea
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ static SKVStore *tdNewKVStore(char *fname, iterFunc iFunc, afterFunc aFunc, void
if (pStore == NULL) goto _err; if (pStore == NULL) goto _err;
pStore->fname = strdup(fname); pStore->fname = strdup(fname);
if (pStore->map == NULL) { if (pStore->fname == NULL) {
terrno = TSDB_CODE_COM_OUT_OF_MEMORY; terrno = TSDB_CODE_COM_OUT_OF_MEMORY;
goto _err; goto _err;
} }