Commit 4cd81f99 authored by conrad's avatar conrad

oggz-chop: report error if oggz_open() fails

Reported by Ondrej Certik
parent 44888c17
......@@ -843,7 +843,10 @@ chop (OCState * state)
oggz = oggz_open (state->infilename, OGGZ_READ|OGGZ_AUTO);
}
if (oggz == NULL) return -1;
if (oggz == NULL) {
perror (state->infilename);
return -1;
}
if (!state->dry_run) {
if (state->outfilename == NULL) {
......
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