aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c
index 85aa37236..6c3144a77 100644
--- a/libbb/loop.c
+++ b/libbb/loop.c
@@ -98,7 +98,7 @@ int set_loop(char **device, const char *file, int offset)
98 /* Find a loop device. */ 98 /* Find a loop device. */
99 try=*device ? : dev; 99 try=*device ? : dev;
100 for(i=0;rc;i++) { 100 for(i=0;rc;i++) {
101 sprintf(dev, LOOP_FORMAT, i++); 101 sprintf(dev, LOOP_FORMAT, i);
102 /* Ran out of block devices, return failure. */ 102 /* Ran out of block devices, return failure. */
103 if(stat(try, &statbuf) || !S_ISBLK(statbuf.st_mode)) { 103 if(stat(try, &statbuf) || !S_ISBLK(statbuf.st_mode)) {
104 rc=ENOENT; 104 rc=ENOENT;