X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fdumpber.c;h=1a3cedd12654744412bb95752d7854955360ea4d;hp=e90ad27de4c896aa55ab4cce97adb987f3d2b326;hb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/src/dumpber.c b/src/dumpber.c index e90ad27..1a3cedd 100644 --- a/src/dumpber.c +++ b/src/dumpber.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ @@ -18,7 +18,7 @@ static int do_dumpBER(FILE *f, const char *buf, int len, int level, int offset) { int res, ll, zclass, tag, cons, lenlen, taglen; - const char *b = buf, *bp = buf; + const char *b = buf; if (!len) return 0; @@ -56,7 +56,6 @@ static int do_dumpBER(FILE *f, const char *buf, int len, int level, int offset) b += res; taglen = res; len -= res; - bp = b; if ((res = ber_declen((unsigned char*)b, &ll, len)) <= 0) { fprintf(f, "\n%*sBad length\n", level*4+5, "");