Merge pull request #21746 from taosdata/fix/TS-3540
fix:null pointer error if restore from file
This commit is contained in:
commit
910e0aae97
|
@ -616,6 +616,8 @@ void *tDecodeSubscribeObj(const void *buf, SMqSubscribeObj *pSub, int8_t sver) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buf = taosDecodeString(buf, &pSub->qmsg);
|
buf = taosDecodeString(buf, &pSub->qmsg);
|
||||||
|
}else{
|
||||||
|
pSub->qmsg = taosStrdup("");
|
||||||
}
|
}
|
||||||
return (void *)buf;
|
return (void *)buf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue