diff --git a/jtag/src/part/part.c b/jtag/src/part/part.c index 6c8b16e9..6cd2bdfe 100644 --- a/jtag/src/part/part.c +++ b/jtag/src/part/part.c @@ -23,6 +23,7 @@ */ #include +#include #include #include @@ -123,7 +124,7 @@ part_find_data_register( part *p, const char *drname ) while (dr) { if (strcmp( drname, dr->name ) == 0) break; - dr = dr->next + dr = dr->next; } return dr;