mirror of git://git.suckless.org/sbase
mount: just set data empty in declaration
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
parent
6c926cd1d4
commit
c444139aea
4
mount.c
4
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;
|
||||
|
|
Loading…
Reference in New Issue