diff options
-rw-r--r-- | src/jtag/jtag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index d8f3ccdc..5e29082c 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -2125,7 +2125,7 @@ int handle_irscan_command(struct command_context_s *cmd_ctx, char *cmd, char **a { int device = strtoul(args[i*2], NULL, 0); jtag_device_t *device_ptr=jtag_get_device(device); - if (device==NULL) + if (device_ptr==NULL) { return ERROR_FAIL; } |