fix:null pointer error if restore from file
This commit is contained in:
parent
22776e60d5
commit
c243e470c9
|
@ -615,6 +615,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