]> git.sur5r.net Git - openocd/commitdiff
- fox small typo in handle_irscan_command
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 20 Nov 2008 10:11:09 +0000 (10:11 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 20 Nov 2008 10:11:09 +0000 (10:11 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1178 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jtag.c

index d8f3ccdccb2524ff07d0ddfc132f08afcba7a97a..5e29082ce93c28fd4f8ae49bcb653566b3d00058 100644 (file)
@@ -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;
                }