Commit 929660a1 authored by Reimar Döffinger's avatar Reimar Döffinger

100l, initialize file descriptor to -1, not 0.

Fixes libdvdread closing stdin if it can't open the file/device.

parent 310834ce
......@@ -335,7 +335,7 @@ static char *bsd_block2char( const char *path )
dvd_reader_t *DVDOpen( const char *ppath )
struct stat fileinfo;
int ret, have_css, retval, cdir = 0;
int ret, have_css, retval, cdir = -1;
dvd_reader_t *ret_val = NULL;
char *dev_name = NULL;
char *path = NULL, *new_path = NULL, *path_copy = 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