From: Adam Dickmeiss Date: Fri, 8 Nov 2002 12:23:38 +0000 (+0000) Subject: Relax check for zero length OCTET aligned X-Git-Tag: YAZ.1.9.2~12 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=64f113142ce1f847896e50a43707d220681faf6b;p=yaz-moved-to-github.git Relax check for zero length OCTET aligned --- diff --git a/client/client.c b/client/client.c index ed9f21f..b7b7e12 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.173 2002-10-22 10:05:36 adam Exp $ + * $Id: client.c,v 1.174 2002-11-08 12:23:38 adam Exp $ */ #include @@ -619,7 +619,7 @@ static void display_record(Z_External *r) if (ent && ent->value == VAL_SOIF) print_record((const unsigned char *) r->u.octet_aligned->buf, r->u.octet_aligned->len); - else if (r->which == Z_External_octet && r->u.octet_aligned->len) + else if (r->which == Z_External_octet) { const char *octet_buf = (char*)r->u.octet_aligned->buf; if (ent->value == VAL_TEXT_XML || ent->value == VAL_APPLICATION_XML ||