From: saerome kim Date: Thu, 21 Sep 2017 03:44:44 +0000 (+0900) Subject: [WGID-263709] fix duplicated if-else clouse problem X-Git-Tag: submit/tizen_4.0/20170921.035443^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb7c48532486cae5f796ccde3d71648b332a8d0a;p=platform%2Fcore%2Fapi%2Fzigbee.git [WGID-263709] fix duplicated if-else clouse problem Change-Id: If57ff3a837b41731c93f7d592b7b88cd82e24443 Signed-off-by: saerome kim (cherry picked from commit ffb7f581c6b839cf4e651def803451873528e7c9) --- diff --git a/lib/zbl_zcl.c b/lib/zbl_zcl.c index b4969e3..44bdb44 100644 --- a/lib/zbl_zcl.c +++ b/lib/zbl_zcl.c @@ -757,7 +757,7 @@ API int zb_get_value(zb_value_h handle, unsigned char *type, unsigned char **val RETV_IF(NULL == s, ZIGBEE_ERROR_OUT_OF_MEMORY); memcpy(s, h->str->v+sizeof(h->str->n), h->str->n); *count = h->str->n; - } else if (ZB_ZCL_OCTAT_STRING == h->type || ZB_ZCL_CHRACTER_STRING == h->type) { + } else if (ZB_ZCL_LONG_OCTAT_STRING == h->type || ZB_ZCL_LONG_CHRACTER_STRING == h->type) { RETV_IF(NULL == h->wstr, ZIGBEE_ERROR_NO_DATA); s = calloc(sizeof(unsigned char), h->wstr->n); RETV_IF(NULL == s, ZIGBEE_ERROR_OUT_OF_MEMORY);