changeset 329:071927ab5357 src

in DVDOpen(), if path_copy ends up being an empty string transform it to /; part of ogle-1778 fixed by me
author nicodvb
date Mon, 31 Dec 2007 18:17:34 +0000
parents 727b18c5824b
children e851da7ec146
files dvdread/dvd_reader.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dvdread/dvd_reader.c	Mon Dec 31 18:08:06 2007 +0000
+++ b/dvdread/dvd_reader.c	Mon Dec 31 18:17:34 2007 +0000
@@ -447,6 +447,11 @@
 	      path_copy[ strlen( path_copy ) - 9 ] = '\0';
 	    }
 	}
+	
+	if(path_copy[0] == '\0') {
+	    path_copy[0] = '/';
+	    path_copy[1] = '\0';
+	}
 
 #if defined(SYS_BSD)
 	if( ( fe = getfsfile( path_copy ) ) ) {