mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-23 01:26:19 +03:00
Remove not needed cleaning of type component
The type component of the programmer is set at runtime. As such it does not need to be part of the raw dump of the configuration values for the developer option -c*/r. As the type component is not used in the raw dump, the removed code does not serve a purpose.
This commit is contained in:
@@ -1231,7 +1231,7 @@ void dev_output_part_defs(char *partdesc) {
|
||||
|
||||
static void dev_pgm_raw(const PROGRAMMER *pgm) {
|
||||
PROGRAMMER dp;
|
||||
int len, idx;
|
||||
int idx;
|
||||
char *id = ldata(lfirst(pgm->id));
|
||||
LNODEID ln;
|
||||
|
||||
@@ -1257,10 +1257,6 @@ static void dev_pgm_raw(const PROGRAMMER *pgm) {
|
||||
if(dp.usbproduct && *dp.usbproduct)
|
||||
dev_raw_dump(dp.usbproduct, strlen(dp.usbproduct) + 1, id, "usbprod", 0);
|
||||
|
||||
// Zap all bytes beyond terminating nul of type array
|
||||
if((len = (int) strlen(dp.type) + 1) < (int) sizeof dp.type)
|
||||
memset(dp.type + len, 0, sizeof dp.type - len);
|
||||
|
||||
// Zap address values
|
||||
dp.desc = NULL;
|
||||
dp.id = NULL;
|
||||
|
||||
Reference in New Issue
Block a user