From 0c6b1a32e55a2436ffc6081d9ae93cf6f1beac21 Mon Sep 17 00:00:00 2001 From: "saerome.kim" Date: Tue, 28 Aug 2018 10:54:38 +0900 Subject: [PATCH] Fixed coverity issue : 109177 Change-Id: I2af5815058d9e852f82e64fee675598501e574ea Signed-off-by: saerome.kim --- src/commonlib/net_nfc_util_sign_record.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commonlib/net_nfc_util_sign_record.c b/src/commonlib/net_nfc_util_sign_record.c index 8929dd1..1b030bf 100644 --- a/src/commonlib/net_nfc_util_sign_record.c +++ b/src/commonlib/net_nfc_util_sign_record.c @@ -54,8 +54,10 @@ typedef struct _net_nfc_certificate_chain_s { ((__x->TNF == NET_NFC_RECORD_EMPTY)) #define __FILL_SUB_FIELD(__dst, __buf, __len) \ - (__dst)->length = (__len); \ - memcpy((__dst)->value, (__buf), (__dst)->length); + { \ + (__dst)->length = (__len); \ + memcpy((__dst)->value, (__buf), (__dst)->length); \ + } #define __NEXT_SUB_FIELD(__dst) ((__dst)->value + (__dst)->length) -- 2.7.4