win-ivcam: Fix potential null pointer dereference

master
Richard Stanway 2017-05-01 19:29:41 +02:00
parent 2ae706782c
commit 61e2828036
No known key found for this signature in database
GPG Key ID: AAC1E5265D71B3FD
1 changed files with 6 additions and 0 deletions

View File

@ -107,6 +107,12 @@ struct IVCamSource {
void IVCamSource::CamThread()
{
pSegServer = SegServer::CreateServer();
if (!pSegServer) {
warn("SegServer::CreateServer failed\n");
return;
}
SegServer::ServiceStatus status = pSegServer->Init();
if (status != SegServer::ServiceStatus::SERVICE_NO_ERROR) {