commit | 1ecad9a95c1343e0a3f2f43c3bcbe7d7a5894447 | [log] [tgz] |
---|---|---|
author | Chih-Wei Huang <cwhuang@linux.org.tw> | Fri May 08 10:44:30 2009 +0800 |
committer | Chih-Wei Huang <cwhuang@linux.org.tw> | Fri May 08 10:44:30 2009 +0800 |
tree | 60fd5c5d5b08d28fbad1e5e3e795bf3b707cdb4c | |
parent | 7be77b5ba8ae21dad91019a02bc2c5d38dba081f [diff] |
Fix uninitialized variable loop The following command will usually just fail # /system/bin/mount -t proc proc /proc ioctl LOOP_SET_FD failed: Bad file number The simple patch fixes the issue.
diff --git a/toolbox/mount.c b/toolbox/mount.c index 395c943..472c952 100644 --- a/toolbox/mount.c +++ b/toolbox/mount.c
@@ -226,7 +226,7 @@ { char *type = NULL; int c; - int loop; + int loop = 0; progname = argv[0]; rwflag = MS_VERBOSE;