[hackers] [ubase] [PATCH] umount: Fix use of uninitialized variable

From: Michael Forney <mforney_AT_mforney.org>
Date: Tue, 12 Mar 2019 20:38:26 -0700

---
 umount.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/umount.c b/umount.c
index 7f9e174..c6d6d9a 100644
--- a/umount.c
+++ b/umount.c
_AT_@ -13,7 +13,7 @@ umountall(int flags)
 {
 	FILE *fp;
 	struct mntent *me;
-	int ret;
+	int ret = 0;
 	char **mntdirs = NULL;
 	int len = 0;
 
_AT_@ -83,4 +83,4 @@ main(int argc, char *argv[])
 		}
 	}
 	return ret;
-}
\ No newline at end of file
+}
-- 
2.19.1
Received on Wed Mar 13 2019 - 04:38:26 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 13 2019 - 04:48:22 CET