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 8c0d5743..f1c6676e 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -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;
}