diff options
author | Pierre Ossman <ossman@cendio.se> | 2019-03-25 16:14:49 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2019-03-25 16:14:49 +0100 |
commit | 44cf1d64ecf80c061c0a2b0f0167094e58782102 (patch) | |
tree | af457c410d02a56b0c1e6dea925448689240d08e /vncviewer | |
parent | b0003b5c6931c6ee2abf9138150ac6f83deed1b0 (diff) | |
download | tigervnc-44cf1d64ecf80c061c0a2b0f0167094e58782102.tar.gz tigervnc-44cf1d64ecf80c061c0a2b0f0167094e58782102.zip |
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.
Diffstat (limited to 'vncviewer')
-rw-r--r-- | vncviewer/PlatformPixelBuffer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) |