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:
paulc 2016-01-20 10:29:46 +00:00
parent d02f2087b9
commit 7bab6e9825
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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))