[libdvdcss-devel] [PATCH] Avoid closing random file descriptor

Petri Hintukainen phintuka at gmail.com
Sun Mar 29 21:21:52 CEST 2015


---
 src/libdvdcss.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index f2d9a22..dc840ad 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -493,6 +493,7 @@ static dvdcss_t dvdcss_open_common ( const char *psz_target, void *p_stream,
         return NULL;
 
     /* Initialize structure with default values. */
+    dvdcss->i_fd = -1;
     dvdcss->i_pos = 0;
     dvdcss->p_titles = NULL;
     dvdcss->psz_device = psz_target ? strdup( psz_target ) : NULL;
-- 
2.1.0



More information about the libdvdcss-devel mailing list