Commit 076b7a15 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

stream: assert that the underlying access is valid

parent 21bb216f
......@@ -298,6 +298,7 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
/* Common field */
p_sys->p_access = p_access;
assert( p_access->pf_block || p_access->pf_read || p_access->pf_readdir );
if( p_access->pf_block )
p_sys->method = STREAM_METHOD_BLOCK;
else if( p_access->pf_read )
......
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