Commit 3a322908 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

Always initialize readv temporary buffer.

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 41905a9b
......@@ -350,6 +350,12 @@ int dvdcss_open_device ( dvdcss_t dvdcss )
}
print_debug( dvdcss, "opening target `%s'", psz_device );
#if defined( _WIN32 )
/* Initialize readv temporary buffer */
dvdcss->p_readv_buffer = NULL;
dvdcss->i_readv_buf_size = 0;
#endif
/* if callback functions are initialized */
if( dvdcss->p_stream )
{
......@@ -367,10 +373,6 @@ int dvdcss_open_device ( dvdcss_t dvdcss )
(!psz_device[2] || (psz_device[2] == '\\' && !psz_device[3])))
dvdcss->b_file = 0;
/* Initialize readv temporary buffer */
dvdcss->p_readv_buffer = NULL;
dvdcss->i_readv_buf_size = 0;
if( !dvdcss->b_file )
{
print_debug( dvdcss, "using Win2K API for access" );
......
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