From f04cd0ec403cd0fa92f23248b717eaa3c4217515 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Mon, 14 Feb 2011 14:21:16 +0000 Subject: [PATCH] [Bugfix] Fix wrong if() in the ScaledPixelBuffer::setSourceBuffer(). Resolves #3178498 bug report. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4289 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/ScaledPixelBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rfb/ScaledPixelBuffer.cxx b/common/rfb/ScaledPixelBuffer.cxx index 056e5d6d..dc6096d7 100644 --- a/common/rfb/ScaledPixelBuffer.cxx +++ b/common/rfb/ScaledPixelBuffer.cxx @@ -75,7 +75,7 @@ void ScaledPixelBuffer::recreateRowAccum() { } void ScaledPixelBuffer::setSourceBuffer(U8 **src_data_, int w, int h) { - if (w > 0 && h > 0 && src_data != NULL) { + if (w > 0 && h > 0 && src_data_ != NULL) { freeWeightTabs(); src_data = src_data_; src_width = w; -- 2.39.5