Don't coredump when executed with -o.

This commit is contained in:
Xin LI 2008-01-29 00:20:00 +00:00
parent c4b709a010
commit 5c68d10833

View File

@ -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) {