Fixed two invalid false to null conversions.
git-svn-id: http://voip.null.ro/svn/yate@6085 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
d02f2087b9
commit
7bab6e9825
|
@ -1048,7 +1048,7 @@ SignallingComponent* TdmInterface::create(const String& type, NamedList& name)
|
|||
if (!(sig && code && code <= count)) {
|
||||
Debug(&plugin,DebugWarn,"Section '%s'. Invalid sigchan='%s' for type='%s'",
|
||||
config->c_str(),sig.safe(),sDevType.c_str());
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
TdmInterface* iface = new TdmInterface(name);
|
||||
if (iface->init(devType,code,code,*config,*general,name))
|
||||
|
|
|
@ -1781,7 +1781,7 @@ SignallingComponent* ZapInterface::create(const String& type, NamedList& name)
|
|||
if (!(sig && code && code <= count)) {
|
||||
Debug(&plugin,DebugWarn,"Section '%s'. Invalid sigchan='%s' for type='%s'",
|
||||
config->c_str(),sig.safe(),sDevType.c_str());
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
ZapInterface* iface = new ZapInterface(name);
|
||||
if (iface->init(devType,code,offset+code,*config,*general,name))
|
||||
|
|
Loading…
Reference in New Issue