summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jtag/jtag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index d66a779d..0e96d210 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);