From: oharboe Date: Tue, 12 May 2009 19:31:50 +0000 (+0000) Subject: irscan now also works correctly in addition to not crashing :-) X-Git-Tag: v0.2.0~739 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23a07044516db49c31904b912ae189b27123e5a4;p=openocd 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 --- 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);