diff --git a/sbin/ffsinfo/ffsinfo.c b/sbin/ffsinfo/ffsinfo.c index 0ef5e9e0e1d8..1570da5e5f90 100644 --- a/sbin/ffsinfo/ffsinfo.c +++ b/sbin/ffsinfo/ffsinfo.c @@ -141,7 +141,7 @@ main(int argc, char **argv) cfg_lv = 0xff; cfg_in = -2; cfg_cg = -2; - out_file = "-"; + out_file = strdup("-"); while ((ch = getopt(argc, argv, "g:i:l:o:")) != -1) { switch (ch) {