Skip to content

Commit

Permalink
Fixing agent compilation errors on ubuntu 16.04
Browse files Browse the repository at this point in the history
Found a compilation error with scons option --optimization=production
while compiling vrouter agent where flow_obj pointer is uninitialized.
Addressing the compilation error by initializing it.

Change-Id: I27434ec31927ffa646f66e7dcdd7f4fca4d9b956
Partial-Bug: #1638643
  • Loading branch information
ravi-bk committed Nov 15, 2016
1 parent ec90b94 commit 4093a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vnsw/agent/pkt/pkt_sandesh_flow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ void DeleteAllFlowRecords::HandleRequest() const {
void FetchFlowRecord::HandleRequest() const {
FlowKey key;
Agent *agent = Agent::GetInstance();
FlowTable *flow_obj;
FlowTable *flow_obj = NULL;

key.nh = get_nh();
error_code ec;
Expand All @@ -405,7 +405,7 @@ void FetchFlowRecord::HandleRequest() const {
}

SandeshResponse *resp;
if (it != flow_obj->flow_entry_map_.end()) {
if (flow_obj && it != flow_obj->flow_entry_map_.end()) {
FlowRecordResp *flow_resp = new FlowRecordResp();
FlowEntry *fe = it->second;
FlowStatsCollector *fec = fe->fsc();
Expand Down

0 comments on commit 4093a70

Please sign in to comment.