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;
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;