commit | ab40c6fa70e9952679e50167b0dfa32a46bb59ad | [log] [tgz] |
---|---|---|
author | Laurence Lundblade <lgl@securitytheory.com> | Fri Aug 28 11:24:58 2020 -0700 |
committer | Laurence Lundblade <lgl@securitytheory.com> | Fri Aug 28 11:24:58 2020 -0700 |
tree | dc173ebe559426fddfb1e2568591c966b094016a | |
parent | d40951efc2aa6ec45b444c5fbef0051e71210d7d [diff] |
return NULL string when spiffy decode errors when getting a string
diff --git a/src/qcbor_decode.c b/src/qcbor_decode.c index 57b9bce..5859957 100644 --- a/src/qcbor_decode.c +++ b/src/qcbor_decode.c
@@ -3752,6 +3752,8 @@ if(pMe->uLastError == QCBOR_SUCCESS) { *pBstr = Item.val.string; + } else { + *pBstr = NULLUsefulBufC; } }