projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7c8d067
)
fix: check size before substr()
author
Jonathan Marshall
<jmarshall@xbmc.org>
Thu, 14 Nov 2013 08:23:31 +0000
(21:23 +1300)
committer
Jonathan Marshall
<jmarshall@xbmc.org>
Thu, 14 Nov 2013 08:23:31 +0000
(21:23 +1300)
xbmc/filesystem/RarFile.cpp
patch
|
blob
|
history
diff --git
a/xbmc/filesystem/RarFile.cpp
b/xbmc/filesystem/RarFile.cpp
index
207e670
..
077b905
100644
(file)
--- a/
xbmc/filesystem/RarFile.cpp
+++ b/
xbmc/filesystem/RarFile.cpp
@@
-547,7
+547,8
@@
void CRarFile::InitFromUrl(const CURL& url)
m_strPathInRar = url.GetFileName();
vector<std::string> options;
- StringUtils::Tokenize(url.GetOptions().substr(1), options, "&");
+ if (!url.GetOptions().empty())
+ StringUtils::Tokenize(url.GetOptions().substr(1), options, "&");
m_bFileOptions = 0;