Fix the coverity issue
[platform/core/connectivity/smartcard-service.git] / common / GPARFACL.cpp
index dc6192d..9d5587e 100644 (file)
@@ -212,13 +212,13 @@ namespace smartcard_service_api
 
                                /* access condition path */
                                if (tlv.decodeTLV() == true && tlv.getTag() == 0x30) /* SEQUENCE : Path */ {
-                                       ByteArray path;
+                                       ByteArray tlv_path;
 
                                        /* OCTET STRING */
-                                       path = SimpleTLV::getOctetString(tlv.getValue());
-                                       _DBG("path : %s", path.toString().c_str());
+                                       tlv_path = SimpleTLV::getOctetString(tlv.getValue());
+                                       _DBG("tlv_path : %s", tlv_path.toString().c_str());
 
-                                       if (loadAccessConditions(channel, aid, path) == 0) {
+                                       if (loadAccessConditions(channel, aid, tlv_path) == 0) {
                                                _DBG("loadCertHashes success");
                                        } else {
                                                _ERR("loadCertHashes failed");