[hackers] [ubase] umount: Fix use of uninitialized variable || Michael Forney

From: <git_AT_suckless.org>
Date: Thu, 14 Mar 2019 12:44:33 +0100 (CET)

commit 3c88778c6c85d97fb63c41c05304519e0484b07c
Author: Michael Forney <mforney_AT_mforney.org>
AuthorDate: Tue Mar 12 20:38:26 2019 -0700
Commit: sin <sin_AT_2f30.org>
CommitDate: Thu Mar 14 11:42:59 2019 +0000

    umount: Fix use of uninitialized variable

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
+}
Received on Thu Mar 14 2019 - 12:44:33 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 14 2019 - 12:48:23 CET