aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Plate <elupus@ecce.se>2014-11-22 00:13:58 +0100
committerfritsch <Peter.Fruehberger@gmail.com>2014-12-29 12:17:34 +0100
commit31f44af91a2cfd6f4d74264e4f1d33172cd52958 (patch)
tree9e64156508e3b72767ca4d1cb1f8f8695280297f
parent5f84269540bac0e174e3b0f986858a234981da64 (diff)
fixed: CID 228815 Unchecked return value
If the function returns an error value, the error value may be mistaken for a normal value. In XFILE::​CStackDirectory::​GetStackedTitlePath(std::​basic_string<char, std::​char_traits<char>, std::​allocator<char>> const&): Value returned from a function is not checked for errors before being used (CWE-252) We don't care for the return value, next check will catch the error.
-rw-r--r--xbmc/filesystem/StackDirectory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/filesystem/StackDirectory.cpp b/xbmc/filesystem/StackDirectory.cpp
index 095c1749b6..3920fb70db 100644
--- a/xbmc/filesystem/StackDirectory.cpp
+++ b/xbmc/filesystem/StackDirectory.cpp
@@ -65,7 +65,7 @@ namespace XFILE
vector<std::string>::const_iterator itRegExp = strRegExps.begin();
while (itRegExp != strRegExps.end())
{
- tempRE.RegComp(*itRegExp);
+ (void)tempRE.RegComp(*itRegExp);
if (tempRE.GetCaptureTotal() == 4)
RegExps.push_back(tempRE);
else