Commit 70260b04 authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

Avoid closing random file descriptor

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent bf669a83
...@@ -493,6 +493,7 @@ static dvdcss_t dvdcss_open_common ( const char *psz_target, void *p_stream, ...@@ -493,6 +493,7 @@ static dvdcss_t dvdcss_open_common ( const char *psz_target, void *p_stream,
return NULL; return NULL;
/* Initialize structure with default values. */ /* Initialize structure with default values. */
dvdcss->i_fd = -1;
dvdcss->i_pos = 0; dvdcss->i_pos = 0;
dvdcss->p_titles = NULL; dvdcss->p_titles = NULL;
dvdcss->psz_device = psz_target ? strdup( psz_target ) : NULL; dvdcss->psz_device = psz_target ? strdup( psz_target ) : 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