Zero the input buffer
This commit is contained in:
parent
7a8e6f7868
commit
fb9a43d93e
|
@ -2024,6 +2024,8 @@ static int read_memory_progbuf(struct target *target, target_addr_t address,
|
||||||
|
|
||||||
select_dmi(target);
|
select_dmi(target);
|
||||||
|
|
||||||
|
memset(buffer, 0, count*size);
|
||||||
|
|
||||||
/* s0 holds the next address to write to
|
/* s0 holds the next address to write to
|
||||||
* s1 holds the next data value to write
|
* s1 holds the next data value to write
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue