From ad7bab8df8efb607234ec6bfc2a64022716450ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Sat, 22 Sep 2012 11:32:41 +0200 Subject: [PATCH] main: Fixed infinite loops --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index fecd2e0..b92a579 100644 --- a/src/main.c +++ b/src/main.c @@ -715,7 +715,7 @@ int main(int argc, char **argv) { image_list_unlink(image_ptr); free(image_ptr); if ( image_ptr == image_unorder_first ) - image_first = next; + image_unorder_first = next; } image_ptr = next; } @@ -735,7 +735,7 @@ int main(int argc, char **argv) { image_list_unlink(image_ptr); free(image_ptr); if ( image_ptr == image_unorder_first ) - image_first = next; + image_unorder_first = next; } image_ptr = next; } @@ -756,7 +756,7 @@ int main(int argc, char **argv) { image_list_unlink(image_ptr); free(image_ptr); if ( image_ptr == image_unorder_first ) - image_first = next; + image_unorder_first = next; image_ptr = next; } @@ -880,7 +880,7 @@ int main(int argc, char **argv) { usb_close_device(usb_dev); usb_dev = NULL; - if ( ret != -EAGAIN ) { + if ( ret == -EAGAIN ) { again = 1; continue; }