Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
5f676c10
Commit
5f676c10
authored
May 18, 2004
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2/utils/var_text.cpp: avoid an infinite loop when $H is specified in
a help string
parent
98b1b9be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/gui/skins2/utils/var_text.cpp
modules/gui/skins2/utils/var_text.cpp
+4
-1
No files found.
modules/gui/skins2/utils/var_text.cpp
View file @
5f676c10
...
...
@@ -61,7 +61,10 @@ const UString VarText::get() const
// $V for volume)
UString
temp
(
m_text
);
while
(
(
pos
=
temp
.
find
(
"$H"
))
!=
UString
::
npos
)
// $H is processed first, in case the help string contains other variables
// to replace. And it is replaced only once, in case one of these other
// variables is $H...
if
(
(
pos
=
temp
.
find
(
"$H"
))
!=
UString
::
npos
)
{
VarManager
*
pVarManager
=
VarManager
::
instance
(
getIntf
()
);
// We use .getRaw() to avoid replacing the $H recursively!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment