Commit ae08ba36 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(ccl_driver): If ccl->suppress_error is nonzeor, don't

insert error message to the output.
(setup_ccl_program): Initialize ccl->suppress_error to 0.
parent 64068fbf
...@@ -1720,7 +1720,8 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed) ...@@ -1720,7 +1720,8 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
} }
ccl_error_handler: ccl_error_handler:
if (destination) if (ccl->suppress_error
&& destination)
{ {
/* We can insert an error message only if DESTINATION is /* We can insert an error message only if DESTINATION is
specified and we still have a room to store the message specified and we still have a room to store the message
...@@ -1937,6 +1938,7 @@ setup_ccl_program (ccl, ccl_prog) ...@@ -1937,6 +1938,7 @@ setup_ccl_program (ccl, ccl_prog)
ccl->status = 0; ccl->status = 0;
ccl->stack_idx = 0; ccl->stack_idx = 0;
ccl->eol_type = CODING_EOL_LF; ccl->eol_type = CODING_EOL_LF;
ccl->suppress_error = 0;
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment