Commit 1d018cd8 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[trac550] cleanup: defer variable definition until it's really used.

parent f436c5c2
......@@ -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),
assert(result == DomainTree::SUCCESS ||
result == DomainTree::ALREADYEXISTS);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment