From: Pierre Ossman Date: Mon, 25 Mar 2019 15:14:49 +0000 (+0100) Subject: Don't use un-initialized stride to base constructor X-Git-Tag: v1.9.90~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=44cf1d64ecf80c061c0a2b0f0167094e58782102;p=tigervnc.git Don't use un-initialized stride to base constructor We can use a dummy value here as we set up the buffer and stride further down in the constructor. --- diff --git a/vncviewer/PlatformPixelBuffer.cxx b/vncviewer/PlatformPixelBuffer.cxx index 1e9803eb..ff1935e7 100644 --- a/vncviewer/PlatformPixelBuffer.cxx +++ b/vncviewer/PlatformPixelBuffer.cxx @@ -36,7 +36,7 @@ static rfb::LogWriter vlog("PlatformPixelBuffer"); PlatformPixelBuffer::PlatformPixelBuffer(int width, int height) : FullFramePixelBuffer(rfb::PixelFormat(32, 24, false, true, 255, 255, 255, 16, 8, 0), - width, height, 0, stride), + width, height, NULL, 0), Surface(width, height) #if !defined(WIN32) && !defined(__APPLE__) , shminfo(NULL), xim(NULL)