[vlc-commits] skins2: return in case of error

Thomas Guillem git at videolan.org
Thu Oct 12 13:45:31 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Oct 12 13:27:27 2017 +0200| [8b65fa1cc864862e5a8b10ca3db53a38ba2c9a71] | committer: Thomas Guillem

skins2: return in case of error

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

 modules/gui/skins2/src/theme_loader.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/skins2/src/theme_loader.cpp b/modules/gui/skins2/src/theme_loader.cpp
index ee69776ac9..d18a6ca1a6 100644
--- a/modules/gui/skins2/src/theme_loader.cpp
+++ b/modules/gui/skins2/src/theme_loader.cpp
@@ -244,6 +244,7 @@ bool ThemeLoader::unarchive( const std::string& fileName, const std::string &tem
             if( !child_stream )
             {
                 msg_Err( getIntf(), "unable to open %s for reading", child->psz_name );
+                return false;
             }
 
             auto out_path = tempPath + "/" + child->psz_name;



More information about the vlc-commits mailing list