Commit 69af053b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

DVDnav: kill a warning on read return

parent f34e491c
...@@ -1469,7 +1469,7 @@ static int ProbeDVD( const char *psz_name ) ...@@ -1469,7 +1469,7 @@ static int ProbeDVD( const char *psz_name )
/* ISO 9660 volume descriptor */ /* ISO 9660 volume descriptor */
char iso_dsc[6]; char iso_dsc[6];
if( lseek( fd, 0x8000 + 1, SEEK_SET ) == -1 if( lseek( fd, 0x8000 + 1, SEEK_SET ) == -1
|| read( fd, iso_dsc, sizeof (iso_dsc) ) < sizeof (iso_dsc) || read( fd, iso_dsc, sizeof (iso_dsc) ) < (int)sizeof (iso_dsc)
|| memcmp( iso_dsc, "CD001\x01", 6 ) ) || memcmp( iso_dsc, "CD001\x01", 6 ) )
goto bailout; goto bailout;
......
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