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
1d018cd8
Commit
1d018cd8
authored
Feb 09, 2011
by
JINMEI Tatuya
Browse files
[trac550] cleanup: defer variable definition until it's really used.
parent
f436c5c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory_datasrc.cc
View file @
1d018cd8
...
...
@@ -93,14 +93,13 @@ struct MemoryZone::MemoryZoneImpl {
l
>
origin_labels
;
--
l
,
wname
=
wname
.
split
(
1
))
{
if
(
wname
.
isWildcard
())
{
DomainNode
*
node
;
DomainTree
::
Result
result
;
// Ensure a separate level exists for the wildcard name.
// Note: for 'name' itself we do this later anyway, but the
// overhead should be marginal because wildcard names should
// be rare.
result
=
domains
.
insert
(
wname
.
split
(
1
),
&
node
);
DomainNode
*
node
;
DomainTree
::
Result
result
(
domains
.
insert
(
wname
.
split
(
1
),
&
node
));
assert
(
result
==
DomainTree
::
SUCCESS
||
result
==
DomainTree
::
ALREADYEXISTS
);
...
...
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