From c78edf5afc73a420b0c0df2e726d0da44edd94a7 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 9 Apr 2014 11:43:23 +0100 Subject: [PATCH] decklink: initialize priv to NULL While the code that creates the object sets priv to some existing pointer after new, this ensures any future new not doing this will hit the various priv!=NULL asserts in the code. Coverity 1139935 --- sys/decklink/capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/decklink/capture.cpp b/sys/decklink/capture.cpp index c923b97e18..85bedf631c 100644 --- a/sys/decklink/capture.cpp +++ b/sys/decklink/capture.cpp @@ -39,7 +39,7 @@ static BMDTimecodeFormat g_timecodeFormat = (BMDTimecodeFormat) 0; -DeckLinkCaptureDelegate::DeckLinkCaptureDelegate ():m_refCount (0) +DeckLinkCaptureDelegate::DeckLinkCaptureDelegate ():priv (NULL), m_refCount (0) { g_mutex_init (&m_mutex); }