summaryrefslogtreecommitdiffstats
path: root/sbin/ffsinfo
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2008-01-29 00:20:00 +0000
committerdelphij <delphij@FreeBSD.org>2008-01-29 00:20:00 +0000
commite9a7a633a2e111bdddbcb052bd72e42ebaa6c1a0 (patch)
tree799fcc6569960dca66882772ea34235299bb7489 /sbin/ffsinfo
parent52562b1365f0acb643c842239a709894d559f279 (diff)
downloadFreeBSD-src-e9a7a633a2e111bdddbcb052bd72e42ebaa6c1a0.zip
FreeBSD-src-e9a7a633a2e111bdddbcb052bd72e42ebaa6c1a0.tar.gz
Don't coredump when executed with -o.
Diffstat (limited to 'sbin/ffsinfo')
-rw-r--r--sbin/ffsinfo/ffsinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ffsinfo/ffsinfo.c b/sbin/ffsinfo/ffsinfo.c
index 0ef5e9e..1570da5 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) {
OpenPOWER on IntegriCloud