Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Satoru KUMA
MPEG129-m52280
Commits
83fbb10e
Commit
83fbb10e
authored
Apr 15, 2019
by
David Flynn
Browse files
po-lite: fix invalid iterator dereference in help formatter
parent
2ff2bfb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
dependencies/program-options-lite/program_options_lite.cpp
View file @
83fbb10e
...
...
@@ -202,7 +202,7 @@ namespace df
auto
section_it
=
opts
.
sections
.
begin
();
for
(
Options
::
NamesPtrList
::
iterator
it
=
opts
.
opt_list
.
begin
();
it
!=
opts
.
opt_list
.
end
();
it
++
)
{
if
(
it
==
section_it
->
second
)
{
if
(
section_it
!=
opts
.
sections
.
end
()
&&
it
==
section_it
->
second
)
{
const
auto
&
section_name
=
section_it
->
first
.
name
;
out
<<
"
\n
"
<<
section_name
<<
"
\n
"
;
fill_n
(
std
::
ostreambuf_iterator
<
char
>
(
out
),
section_name
.
size
(),
'-'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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