• Stefan Knoblich's avatar
    [FreeTDM] Fix segfault in ftdm_analog_configure_span() on startup. · 02b29263
    Stefan Knoblich 提交于
    Using ftdm_log_chan() in ftdm_analog_configure_span() is a bad idea,
    since the span won't have any channels assigned.
    
    This bug powered by declaring all variables at the top of the function,
    even if they are used in an if branch at the end.
    
    A C99'ish:
    
    	if (callwaiting) {
    		for (unsigned int i = 1; i <= span->span->chan_count; i++) {
    			/* ... */
    		}
    	}
    
    would have alerted the developer adding the log statement.
    But since we can't have nice things (thanks MSVC for not supporting C99!)
    </rant>
    Signed-off-by: 's avatarStefan Knoblich <s.knoblich@axsentis.de>
    02b29263
名称
最后提交
最后更新
build 正在载入提交数据...
cmake_modules 正在载入提交数据...
conf 正在载入提交数据...
debian 正在载入提交数据...
docs 正在载入提交数据...
dtd 正在载入提交数据...
freeswitch.xcodeproj 正在载入提交数据...
fscomm 正在载入提交数据...
htdocs 正在载入提交数据...
libs 正在载入提交数据...
patches 正在载入提交数据...
scripts 正在载入提交数据...
src 正在载入提交数据...
support-d 正在载入提交数据...
w32 正在载入提交数据...
web 正在载入提交数据...
.gitignore 正在载入提交数据...
.version.in 正在载入提交数据...
CMakeLists.txt 正在载入提交数据...
Freeswitch.2005.unsupported.sln 正在载入提交数据...
Freeswitch.2008.express.sln 正在载入提交数据...
Freeswitch.2008.sln 正在载入提交数据...
Freeswitch.2008.sln.debug.bat 正在载入提交数据...
Freeswitch.2008.sln.release.bat 正在载入提交数据...
Freeswitch.2010.express.sln 正在载入提交数据...
Freeswitch.2010.sln 正在载入提交数据...
INSTALL 正在载入提交数据...
Makefile.am 正在载入提交数据...
acinclude.m4 正在载入提交数据...
bootstrap.sh 正在载入提交数据...
configure.in 正在载入提交数据...
devel-bootstrap.sh 正在载入提交数据...
freeswitch-sounds-en-us-callie.spec 正在载入提交数据...
freeswitch.spec 正在载入提交数据...