From c243e470c976d9ed6d7680bb2cabe0566dbf42b5 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Thu, 15 Jun 2023 19:44:58 +0800 Subject: [PATCH] fix:null pointer error if restore from file --- source/dnode/mnode/impl/src/mndDef.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/dnode/mnode/impl/src/mndDef.c b/source/dnode/mnode/impl/src/mndDef.c index 4c13330531..b6561a0ca3 100644 --- a/source/dnode/mnode/impl/src/mndDef.c +++ b/source/dnode/mnode/impl/src/mndDef.c @@ -615,6 +615,8 @@ void *tDecodeSubscribeObj(const void *buf, SMqSubscribeObj *pSub, int8_t sver) { } } buf = taosDecodeString(buf, &pSub->qmsg); + }else{ + pSub->qmsg = taosStrdup(""); } return (void *)buf; } -- GitLab