ref: 70260b04bf37880bb928306f6f7ee607ce531395
parent: bf669a831a7bc841621dc8117c18422b55656512
author: Petri Hintukainen <[email protected]>
date: Sun Mar 29 18:21:52 EDT 2015
Avoid closing random file descriptor Signed-off-by: Jean-Baptiste Kempf <[email protected]>
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -493,6 +493,7 @@
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;