diff --git a/runtime/obj.c b/runtime/obj.c index c78b1d27ab..03a56f7a3a 100644 --- a/runtime/obj.c +++ b/runtime/obj.c @@ -518,7 +518,11 @@ static rsRetVal objDeserializeStr(cstr_t **ppCStr, int iLen, strm_t *pStrm) cstrFinalize(pCStr); /* check terminator */ - if(c != ':') ABORT_FINALIZE(RS_RET_INVALID_DELIMITER); + if(c != ':') { + /* Initialized to NULL */ + *ppCStr = NULL; + ABORT_FINALIZE(RS_RET_INVALID_DELIMITER); + } *ppCStr = pCStr;