If rdpayload contains no variable of each attribute,
This function always returns fail.
So change that accepts empty variable.
Change-Id: Ic2827396d6894f00ce9de94b7924614b9f605f6b
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5671
Reviewed-by: Habib Virji <habib.virji@samsung.com>
static CborError ConditionalAddIntToMap(CborEncoder *map, const char *tags, const size_t size,
const uint64_t *value)
{
- CborError err = CborUnknownError;
+ CborError err = CborNoError;
if (*value)
{
err = cbor_encode_text_string(map, tags, size);