ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit c444139aeaf9c1c2847537b32b7e99d1b4299247
parent 6c926cd1d4389657135159b7070fad292c64e790
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 15 Mar 2014 17:08:53 +0100

mount: just set data empty in declaration

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Mmount.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 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] = '\0'; - ARGBEGIN { case 'B': flags |= MS_BIND;