Fix the converity warnings:
CID 10177: Array compared against 0 (NO_EFFECT) Comparing an array to null is not useful: "this->_paServerVersion". Review URL: https://webrtc-codereview.appspot.com/466001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1956 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
f35f54bf68
commit
010a4e8f0b
@ -1976,11 +1976,8 @@ void AudioDeviceLinuxPulse::PaServerInfoCallbackHandler(const pa_server_info *i)
|
||||
_samplingFreq = paSampleRate / 1000;
|
||||
|
||||
// Copy the PA server version
|
||||
if (_paServerVersion)
|
||||
{
|
||||
strncpy(_paServerVersion, i->server_version, 31);
|
||||
_paServerVersion[31] = '\0';
|
||||
}
|
||||
strncpy(_paServerVersion, i->server_version, 31);
|
||||
_paServerVersion[31] = '\0';
|
||||
|
||||
if (_recDisplayDeviceName)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user