diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-12 19:31:50 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-12 19:31:50 +0000 |
commit | 23a07044516db49c31904b912ae189b27123e5a4 (patch) | |
tree | e0bf11a6779ac87dee8cc34af579f5e28961338b | |
parent | b7b586ac6b6d48f78778a20d7490e022b5ec6c98 (diff) | |
download | riscv-openocd-23a07044516db49c31904b912ae189b27123e5a4.zip riscv-openocd-23a07044516db49c31904b912ae189b27123e5a4.tar.gz riscv-openocd-23a07044516db49c31904b912ae189b27123e5a4.tar.bz2 |
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
-rw-r--r-- | src/jtag/jtag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index d66a779..0e96d21 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -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); |