]> git.sur5r.net Git - openocd/commitdiff
irscan now also works correctly in addition to not crashing :-)
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 12 May 2009 19:31:50 +0000 (19:31 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 12 May 2009 19:31:50 +0000 (19:31 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1770 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jtag.c

index d66a779d13f818fdd749f38b049d7b64c448c161..0e96d2105a8715469dd5077f7ed8589dedad37fa 100644 (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);