umount: Fix use of uninitialized variable - ubase - suckless linux base utils | |
git clone git://git.suckless.org/ubase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 3c88778c6c85d97fb63c41c05304519e0484b07c | |
parent 140efda3a263b9e6d922633c418fa9846d35731d | |
Author: Michael Forney <[email protected]> | |
Date: Tue, 12 Mar 2019 20:38:26 -0700 | |
umount: Fix use of uninitialized variable | |
Diffstat: | |
M umount.c | 5 ++--- | |
1 file changed, 2 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/umount.c b/umount.c | |
@@ -13,7 +13,7 @@ umountall(int flags) | |
{ | |
FILE *fp; | |
struct mntent *me; | |
- int ret; | |
+ int ret = 0; | |
char **mntdirs = NULL; | |
int len = 0; | |
@@ -83,4 +83,4 @@ main(int argc, char *argv[]) | |
} | |
} | |
return ret; | |
-} | |
-\ No newline at end of file | |
+} |