Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 9693 invoked from network); 25 Apr 2007 13:58:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2007 13:58:38 -0000 Received: (qmail 8165 invoked by uid 500); 25 Apr 2007 13:58:44 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 8134 invoked by uid 500); 25 Apr 2007 13:58:44 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 8125 invoked by uid 99); 25 Apr 2007 13:58:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2007 06:58:44 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2007 06:58:36 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 481621A9838; Wed, 25 Apr 2007 06:58:15 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r532356 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp Date: Wed, 25 Apr 2007 13:58:15 -0000 To: commits@harmony.apache.org From: apetrenko@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070425135815.481621A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: apetrenko Date: Wed Apr 25 06:58:14 2007 New Revision: 532356 URL: http://svn.apache.org/viewvc?view=rev&rev=532356 Log: Patch for HARMONY-3677 "[classlib][awt] Results of running checker tool" Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp?view=diff&rev=532356&r1=532355&r2=532356 ============================================================================== --- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp (original) +++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp Wed Apr 25 06:58:14 2007 @@ -973,7 +973,7 @@ unsigned char r, unsigned char g, unsigned char b, unsigned char a){ int type = surfStruct->ss_type; - unsigned char *p, pixel; + unsigned char *p, pixel = 0; unsigned short *sp; int rc, gc, bc, ac, rgb, pixelBits, bitnum, shift, bitMask, elem, gray, mask, error, minError, alphaError, minAlphaError, buf; @@ -1173,7 +1173,6 @@ } else { minAlphaError = 255; minError = 195075; // 255^2 + 255^2 + 255^2 - alphaError; error = 0; for (int i = 0; i < surfStruct->colormap_size; i++) {