[vlc-commits] skins2: fix error handling

Rémi Denis-Courmont git at videolan.org
Fri Aug 21 19:14:26 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug 21 19:57:55 2015 +0300| [d23a1c7c20559615d052b20f93739545421e11bd] | committer: Rémi Denis-Courmont

skins2: fix error handling

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d23a1c7c20559615d052b20f93739545421e11bd
---

 modules/gui/skins2/src/theme_loader.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/skins2/src/theme_loader.cpp b/modules/gui/skins2/src/theme_loader.cpp
index 9363094..95b8428 100644
--- a/modules/gui/skins2/src/theme_loader.cpp
+++ b/modules/gui/skins2/src/theme_loader.cpp
@@ -520,7 +520,7 @@ int tar_open( TAR **t, char *pathname, int oflags )
     (void)oflags;
 
     int fd = vlc_open( pathname, O_BINARY | O_RDONLY );
-    if( !fd )
+    if( fd == -1 )
     {
         fprintf( stderr, "Couldn't open %s\n", pathname );
         return -1;
@@ -766,7 +766,7 @@ int gzopen_frontend( const char *pathname, int oflags, int mode )
         return -1;
     }
     int fd = vlc_open( pathname, oflags );
-    if( !fd )
+    if( fd == -1 )
     {
         fprintf( stderr, "Couldn't open %s\n", pathname );
         return -1;



More information about the vlc-commits mailing list