}
*out_namep = xstrdup (argv[1]);
output_file_name_check (out_namep);
- yyout = xfopen (*out_namep, "w");
+ /* If there were errors, do not generate the output. */
+ yyout = xfopen (complaint_status ? "/dev/null" : *out_namep, "w");
*out_linenop = 1;
}