[hackers] [ubase] mount: siz variable can potentially be used uninitialized || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Fri, 14 Feb 2014 15:10:49 +0100

commit f8f4a96cc158b507c02bd4b937246205bd4e7879
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Feb 14 12:12:48 2014 +0100

    mount: siz variable can potentially be used uninitialized
    
    Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>

diff --git a/mount.c b/mount.c
index cd24480..0ebb453 100644
--- a/mount.c
+++ b/mount.c
_AT_@ -43,18 +43,15 @@ usage(void)
 int
 main(int argc, char *argv[])
 {
- int i;
+ int i, validopt, siz = 0, oflag = 0;
         unsigned long flags = 0;
         char *types = NULL, *arg = NULL, *p;
         const char *source;
         const char *target;
         struct stat st1, st2;
- int validopt;
         void *data = NULL;
         struct mntinfo *minfo = NULL;
         struct option *opt, *tmp;
- int siz;
- int oflag = 0;
 
         ARGBEGIN {
         case 'B':
Received on Fri Feb 14 2014 - 15:10:49 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 14 2014 - 15:12:15 CET