2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-07-20 04:54:12 +10:00

irscan now also works correctly in addition to not crashing :-)

git-svn-id: svn://svn.berlios.de/openocd/trunk@1770 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe 2009-05-12 19:31:50 +00:00
parent b7b586ac6b
commit 23a0704451

View File

@ -2889,7 +2889,7 @@ static int handle_irscan_command(struct command_context_s *cmd_ctx, char *cmd, c
}
}
int num_fields= num_fields;
int num_fields = argc / 2;
fields = malloc(sizeof(scan_field_t) * num_fields);