diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-09-22 11:32:41 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-09-22 11:32:41 +0200 |
commit | ad7bab8df8efb607234ec6bfc2a64022716450ec (patch) | |
tree | 6f01bcc90b181c2e7cccbc968e619a1e761f3a20 /src/main.c | |
parent | 805bafacef08fd8c05a75f939e536c32ede50e22 (diff) | |
download | 0xFFFF-ad7bab8df8efb607234ec6bfc2a64022716450ec.tar.bz2 |
main: Fixed infinite loops
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |