]> git.sur5r.net Git - openocd/commitdiff
Fix fallout from r1818
authorkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 18 May 2009 17:40:42 +0000 (17:40 +0000)
committerkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 18 May 2009 17:40:42 +0000 (17:40 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1824 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jtag.c

index 8c0d5743671fe8cf7d4e957922b8edad37ebd39b..f1c6676ea5e99a1ddf53b38663ee4da1028116c1 100644 (file)
@@ -868,7 +868,7 @@ int MINIDRIVER(interface_jtag_add_dr_scan)(int num_fields, scan_field_t *fields,
        }
 
        /* field_count represents the true number of fields setup*/
-       (*last_cmd)->cmd.scan->num_fields = field_count;
+       cmd->cmd.scan->num_fields = field_count;
        return ERROR_OK;
 }