Commit 2272f1d9 authored by conrad's avatar conrad

oggz-chop: add sanity-check for initialization state


git-svn-id: http://svn.annodex.net/liboggz/trunk@3813 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 49fe5690
......@@ -743,6 +743,11 @@ chop (OCState * state)
{
OGGZ * oggz;
if (state == NULL || state->infilename == NULL) {
fprintf (stderr, "oggz-chop: Initialization state invalid\n");
return -1;
}
state_init (state);
if (strcmp (state->infilename, "-") == 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