Don't coredump when executed with -o.

This commit is contained in:
delphij 2008-01-29 00:20:00 +00:00
parent 52562b1365
commit e9a7a633a2

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