Commit d23a1c7c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

skins2: fix error handling

parent c63fb384
...@@ -520,7 +520,7 @@ int tar_open( TAR **t, char *pathname, int oflags ) ...@@ -520,7 +520,7 @@ int tar_open( TAR **t, char *pathname, int oflags )
(void)oflags; (void)oflags;
int fd = vlc_open( pathname, O_BINARY | O_RDONLY ); int fd = vlc_open( pathname, O_BINARY | O_RDONLY );
if( !fd ) if( fd == -1 )
{ {
fprintf( stderr, "Couldn't open %s\n", pathname ); fprintf( stderr, "Couldn't open %s\n", pathname );
return -1; return -1;
...@@ -766,7 +766,7 @@ int gzopen_frontend( const char *pathname, int oflags, int mode ) ...@@ -766,7 +766,7 @@ int gzopen_frontend( const char *pathname, int oflags, int mode )
return -1; return -1;
} }
int fd = vlc_open( pathname, oflags ); int fd = vlc_open( pathname, oflags );
if( !fd ) if( fd == -1 )
{ {
fprintf( stderr, "Couldn't open %s\n", pathname ); fprintf( stderr, "Couldn't open %s\n", pathname );
return -1; return -1;
......
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