mount: just set data empty in declaration

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
Hiltjo Posthuma 2014-03-15 17:08:53 +01:00 committed by sin
parent 6c926cd1d4
commit c444139aea

View File

@ -78,7 +78,7 @@ main(int argc, char *argv[])
{ {
int aflag = 0, i; int aflag = 0, i;
unsigned long flags = 0; unsigned long flags = 0;
char *types = NULL, data[512]; char *types = NULL, data[512] = "";
char *files[] = { "/proc/mounts", "/etc/fstab", NULL }; char *files[] = { "/proc/mounts", "/etc/fstab", NULL };
size_t datasiz = sizeof(data); size_t datasiz = sizeof(data);
const char *source, *target; const char *source, *target;
@ -86,8 +86,6 @@ main(int argc, char *argv[])
struct mntent *me = NULL; struct mntent *me = NULL;
FILE *fp; FILE *fp;
data[0] = '\0';
ARGBEGIN { ARGBEGIN {
case 'B': case 'B':
flags |= MS_BIND; flags |= MS_BIND;