X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fmarcdump.c;h=919096406c4e665e5fc8939938f0b591157a35c2;hb=b925ea17d6f146a28d745b0d34e9eec6eafda21f;hp=3b6163ca2002bba981d782deeba106b1746454d9;hpb=fc6d778b923000b5c6ad8e108b0b184178a9d33f;p=yaz-moved-to-github.git diff --git a/util/marcdump.c b/util/marcdump.c index 3b6163c..9190964 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdump.c,v 1.40 2006-07-06 10:17:55 adam Exp $ + * $Id: marcdump.c,v 1.41 2006-08-28 12:31:18 adam Exp $ */ #define _FILE_OFFSET_BITS 64 @@ -204,9 +204,11 @@ static void dump(const char *fname, const char *from, const char *to, fclose(sf); } } - { int rlentmp = (int) rlen; - r = yaz_marc_decode_buf (mt, buf, -1, &result, &rlentmp); - rlen = (size_t) rlentmp; } + { + int rlentmp = (int) rlen; + r = yaz_marc_decode_buf(mt, buf, -1, &result, &rlentmp); + rlen = (size_t) rlentmp; + } if (r > 0 && result) { fwrite (result, rlen, 1, stdout);