From 1ecad9a95c1343e0a3f2f43c3bcbe7d7a5894447 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Fri, 8 May 2009 10:44:30 +0800 Subject: [PATCH] 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. --- toolbox/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/mount.c b/toolbox/mount.c index 395c9433a..472c952e7 100644 --- a/toolbox/mount.c +++ b/toolbox/mount.c @@ -226,7 +226,7 @@ int mount_main(int argc, char *argv[]) { char *type = NULL; int c; - int loop; + int loop = 0; progname = argv[0]; rwflag = MS_VERBOSE;