From: Adam Tkac Date: Mon, 14 Feb 2011 14:21:16 +0000 (+0000) Subject: [Bugfix] Fix wrong if() in the ScaledPixelBuffer::setSourceBuffer(). X-Git-Tag: v1.0.90~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f04cd0ec403cd0fa92f23248b717eaa3c4217515;p=tigervnc.git [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 --- 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;