Commit 024424cf authored by conrad's avatar conrad

added checks for oggz_new failure to oggz_open() and oggz_open_io()


git-svn-id: http://svn.annodex.net/liboggz/trunk@434 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 608b4701
......@@ -118,7 +118,9 @@ oggz_open (char * filename, int flags)
}
if (file == NULL) return NULL;
oggz = oggz_new (flags);
if ((oggz = oggz_new (flags)) == NULL)
return NULL;
oggz->file = file;
return oggz;
......@@ -131,7 +133,9 @@ oggz_open_stdio (FILE * file, int flags)
if (oggz_flags_disabled (flags)) return NULL;
oggz = oggz_new (flags);
if ((oggz = oggz_new (flags)) == NULL)
return NULL;
oggz->file = file;
return oggz;
......
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