[hackers] [ubase] mount: just set data empty in declaration || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 15 Mar 2014 18:51:38 +0100

commit c444139aeaf9c1c2847537b32b7e99d1b4299247
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Mar 15 17:08:53 2014 +0100

    mount: just set data empty in declaration
    
    Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>

diff --git a/mount.c b/mount.c
index d01eecd..41f42f5 100644
--- a/mount.c
+++ b/mount.c
_AT_@ -78,7 +78,7 @@ main(int argc, char *argv[])
 {
         int aflag = 0, i;
         unsigned long flags = 0;
- char *types = NULL, data[512];
+ char *types = NULL, data[512] = "";
         char *files[] = { "/proc/mounts", "/etc/fstab", NULL };
         size_t datasiz = sizeof(data);
         const char *source, *target;
_AT_@ -86,8 +86,6 @@ main(int argc, char *argv[])
         struct mntent *me = NULL;
         FILE *fp;
 
- data[0] = '
Received on Sat Mar 15 2014 - 18:51:38 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 15 2014 - 19:00:16 CET