Fixed some warnings flagged by IAR C-STAT static analysis tool.

This commit is contained in:
skarg
2016-01-07 21:31:38 +00:00
parent dd0fb9c841
commit 0697065030
16 changed files with 51 additions and 52 deletions
+4 -2
View File
@@ -883,8 +883,10 @@ int encode_octet_string(
to bounds check since it might not be the only data chunk */
len = (int) octetstring_length(octet_string);
value = octetstring_value(octet_string);
for (i = 0; i < len; i++) {
apdu[i] = value[i];
if (value) {
for (i = 0; i < len; i++) {
apdu[i] = value[i];
}
}
}