mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-05-10 11:05:06 +02:00
refactor: Initialize variables
This commit is contained in:
@@ -180,7 +180,7 @@ eth4 Link encap:Ethernet HWaddr 00:0C:29:F6:BE:BE
|
||||
|
||||
for (intf=it->second.begin(); intf!=it->second.end(); ++intf)
|
||||
{
|
||||
linux24Interfaces::interface_type itype;
|
||||
linux24Interfaces::interface_type itype{};
|
||||
|
||||
if ((*intf)->name.find("bond") == 0 &&
|
||||
(*intf)->name.find(".") == string::npos)
|
||||
|
||||
@@ -957,7 +957,7 @@ void PIXImporter::commitNamedICMPServiceObject()
|
||||
|
||||
void PIXImporter::commitNamedTCPUDPServiceObject()
|
||||
{
|
||||
FWObject *obj;
|
||||
FWObject *obj = nullptr;
|
||||
// have to use createTCPService because it processes "neq" port
|
||||
// operators and may create a group with two services nstead of
|
||||
// just tcp service. Same for udp.
|
||||
|
||||
@@ -155,7 +155,7 @@ vector<FWObject*> fwcompiler::_find_srv_intersection(Service *op1, Service *op2)
|
||||
if ( ! _find_portrange_intersection(srs1,sre1,srs2,sre2,srsR,sreR) ) return res;
|
||||
if ( ! _find_portrange_intersection(drs1,dre1,drs2,dre2,drsR,dreR) ) return res;
|
||||
|
||||
FWObject *nserv;
|
||||
FWObject *nserv = nullptr;
|
||||
if ( TCPService::cast(op1) )
|
||||
{
|
||||
nserv=new TCPService();
|
||||
|
||||
@@ -159,7 +159,7 @@ void RuleSetDiffDialog::updateRuleSetView() {
|
||||
|
||||
if (!currentRuleSet || !originalRuleSet) return;
|
||||
|
||||
RuleSetModel *currentRuleSetModel, *originalRuleSetModel;
|
||||
RuleSetModel *currentRuleSetModel = nullptr, *originalRuleSetModel = nullptr;
|
||||
|
||||
if (Policy::isA(currentRuleSet)) {
|
||||
currentRuleSetModel = new PolicyModel(Policy::cast(currentRuleSet), this);
|
||||
|
||||
Reference in New Issue
Block a user