From d68d25baaa7f6e41fb50e03fa29355038452c74b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= <fabian@blaese.de> Date: Thu, 20 Sep 2018 11:15:58 +0200 Subject: [PATCH] Fix endless loop introduced in segmentation fault fix --- avarice/src/jtag2usb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avarice/src/jtag2usb.cc b/avarice/src/jtag2usb.cc index 10acd25..4079f1f 100644 --- a/avarice/src/jtag2usb.cc +++ b/avarice/src/jtag2usb.cc @@ -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; } -- GitLab