You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make explicit comparison with NULL to address reported issue eclipse-wakaama#499. Not a bug.
Signed-off-by: Leif Sandstrom <leif.sandstrom@husqvarnagroup.com>
string is no boolean, do not use negation
static int prv_parseItem(const uint8_t * buffer,
size_t bufferLen,
_record_t * recordP)
{
.
.
case _TYPE_STRING:
if (0 != recordP->valueLen)
{
size_t stringLen;
uint8_t *string = (uint8_t *)lwm2m_malloc(recordP->valueLen);
if (!string) return false;
stringLen = json_unescapeString(string, recordP->value, recordP->valueLen);
if (stringLen)
{
lwm2m_data_encode_nstring((char *)string, stringLen, targetP);
lwm2m_free(string);
}
The text was updated successfully, but these errors were encountered: