Commit d68d25ba authored by Fabian Bläse's avatar Fabian Bläse
Browse files

Fix endless loop introduced in segmentation fault fix

parent 74eac4da
......@@ -641,12 +641,12 @@ static hid_device *openhid(const char *jtagDeviceName, unsigned int &max_pkt_siz
return NULL;
walk = list;
while (walk)
{
if (walk->product_string == NULL)
{
fprintf(stderr, "Unknown error: Could not read product string from Atmel device.\n");
walk = walk->next;
continue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment