summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-09-22 11:32:41 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-09-22 11:32:41 +0200
commitad7bab8df8efb607234ec6bfc2a64022716450ec (patch)
tree6f01bcc90b181c2e7cccbc968e619a1e761f3a20 /src/main.c
parent805bafacef08fd8c05a75f939e536c32ede50e22 (diff)
download0xFFFF-ad7bab8df8efb607234ec6bfc2a64022716450ec.tar.bz2
main: Fixed infinite loops
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files 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;
}