From 39d1ed21af9bd7aef374d30b9813b25c7fe41e90 Mon Sep 17 00:00:00 2001
From: Alberto Massari <amassari@apache.org>
Date: Mon, 28 Aug 2006 11:03:15 +0000
Subject: [PATCH] The wrong variable was checked

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@437654 13f79535-47bb-0310-9956-ffa450edef68
---
 .../util/Transcoders/IconvGNU/IconvGNUTransService.cpp        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp b/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp
index c92cbad0b..6f0fe2b60 100644
--- a/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp
+++ b/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp
@@ -470,7 +470,7 @@ IconvGNUTransService::IconvGNUTransService()
         if (cd_to == (iconv_t)-1)
             continue;
         iconv_t    cd_from = iconv_open(eptr->fSchema, fLocalCP);
-        if (cd_to == (iconv_t)-1) {
+        if (cd_from == (iconv_t)-1) {
             iconv_close (cd_to);
             continue;
         }
@@ -491,7 +491,7 @@ IconvGNUTransService::IconvGNUTransService()
             if (cd_to == (iconv_t)-1)
                 continue;
             iconv_t    cd_from = iconv_open(eptr->fSchema, fLocalCP);
-            if (cd_to == (iconv_t)-1) {
+            if (cd_from == (iconv_t)-1) {
                 iconv_close (cd_to);
                 continue;
             }
-- 
GitLab