commit c444139aeaf9c1c2847537b32b7e99d1b4299247
Author: Hiltjo Posthuma <[email protected]>
Date: Sat Mar 15 17:08:53 2014 +0100
mount: just set data empty in declaration
Signed-off-by: Hiltjo Posthuma <[email protected]>
diff --git a/mount.c b/mount.c
index d01eecd..41f42f5 100644
--- a/mount.c
+++ b/mount.c
@@ -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;
@@ -86,8 +86,6 @@ main(int argc, char *argv[])
struct mntent *me = NULL;
FILE *fp;
- data[0] = '