From 386fc8aa64d01486aa4fb3dac0dde1003a3b3d3f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 24 Sep 2007 12:51:10 +0000 Subject: [PATCH] Fixed bug with shadowing of variable in lookup_marc8. Bug introduced in previous commit (1.44). --- src/siconv.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/siconv.c b/src/siconv.c index 5255748..a770a6c 100644 --- a/src/siconv.c +++ b/src/siconv.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: siconv.c,v 1.44 2007-09-22 18:49:55 adam Exp $ + * $Id: siconv.c,v 1.45 2007-09-24 12:51:10 adam Exp $ */ /** * \file siconv.c @@ -1443,6 +1443,8 @@ static unsigned long lookup_marc8(yaz_iconv_t cd, cd->my_errno = YAZ_ICONV_EILSEQ; return 0; } + else if (x == ' ') + return x; else { unsigned char *inp; @@ -1453,9 +1455,6 @@ static unsigned long lookup_marc8(yaz_iconv_t cd, inp = (unsigned char *) utf8_buf; inbytesleft = strlen(utf8_buf); - if (x == ' ') - return x; - x = yaz_marc8r_42_conv(inp, inbytesleft, &no_read_sub, comb); if (x) { -- 1.7.10.4