Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
9565a793
Commit
9565a793
authored
Oct 15, 2012
by
Tomek Mrugalski
🛰
Browse files
[master] Using the default value of second parameter for substr
parent
932edbb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/lease_mgr.cc
View file @
9565a793
...
...
@@ -45,7 +45,7 @@ LeaseMgr::LeaseMgr(const std::string& dbconfig) {
size_t
pos
=
token
.
find
(
"="
);
if
(
pos
!=
string
::
npos
)
{
string
name
=
token
.
substr
(
0
,
pos
);
string
value
=
token
.
substr
(
pos
+
1
,
-
1
);
string
value
=
token
.
substr
(
pos
+
1
);
parameters_
.
insert
(
pair
<
string
,
string
>
(
name
,
value
));
}
else
{
isc_throw
(
InvalidParameter
,
"Cannot parse "
<<
token
...
...
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