summaryrefslogtreecommitdiffstats
path: root/sbin/swapon/swapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/swapon/swapon.c')
-rw-r--r--sbin/swapon/swapon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c
index 5dcb18d..d93277c 100644
--- a/sbin/swapon/swapon.c
+++ b/sbin/swapon/swapon.c
@@ -446,7 +446,7 @@ swap_on_off_md(const char *name, char *mntops, int doingall)
FILE *sfd;
int fd, mdunit, error;
const char *ret;
- char mdpath[PATH_MAX], linebuf[PATH_MAX];
+ static char mdpath[PATH_MAX], linebuf[PATH_MAX];
char *p, *vnodefile;
size_t linelen;
u_long ul;
OpenPOWER on IntegriCloud