fix: unshadow

This commit is contained in:
iceman1001 2019-10-20 06:30:09 -04:00
commit 339f499a25

View file

@ -1,4 +1,4 @@
//----------------------------------------------------------------------------- ://-----------------------------------------------------------------------------
// Copyright (C) 2018 Merlok // Copyright (C) 2018 Merlok
// //
// This code is licensed to you under the terms of the GNU GPL, version 2 or, // This code is licensed to you under the terms of the GNU GPL, version 2 or,
@ -372,8 +372,8 @@ bool ParamLoadFromJson(struct tlvdb *tlv) {
return false; return false;
} }
tlv_tag_t tag = 0; tlv_tag_t tag = 0;
for (int i = 0; i < buflen; i++) { for (int j = 0; j < buflen; j++) {
tag = (tag << 8) | buf[i]; tag = (tag << 8) | buf[j];
} }
if (!HexToBuffer("TLV Error value:", tlvValue, buf, sizeof(buf) - 1, &buflen)) { if (!HexToBuffer("TLV Error value:", tlvValue, buf, sizeof(buf) - 1, &buflen)) {