mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
coverty 226411
This commit is contained in:
parent
6f9b9335a1
commit
0684060ec0
1 changed files with 3 additions and 0 deletions
|
@ -169,6 +169,9 @@ void printvar(const char *name, uint8_t *arr, int len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void printarr_human_readable(const char *title, uint8_t *arr, int len) {
|
void printarr_human_readable(const char *title, uint8_t *arr, int len) {
|
||||||
|
|
||||||
|
if (arr == NULL) return;
|
||||||
|
|
||||||
int cx = 0, i;
|
int cx = 0, i;
|
||||||
size_t outsize = 100 + strlen(title) + len * 4;
|
size_t outsize = 100 + strlen(title) + len * 4;
|
||||||
char *output = calloc(outsize, sizeof(char));
|
char *output = calloc(outsize, sizeof(char));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue