From 67945ae14416eb099fec28978f286ebba7f5313f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 16 Jan 2006 15:53:28 +0000 Subject: [PATCH] Fixed bug in yaz_oi_get_string_oid. The function did not give categoryValue to yaz_oi_update. --- src/otherinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/otherinfo.c b/src/otherinfo.c index 4cf95c8..2dc06f3 100644 --- a/src/otherinfo.c +++ b/src/otherinfo.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: otherinfo.c,v 1.4 2005-06-25 15:46:04 adam Exp $ + * $Id: otherinfo.c,v 1.5 2006-01-16 15:53:28 adam Exp $ */ /** * \file otherinfo.c @@ -190,7 +190,8 @@ char *yaz_oi_get_string_oid ( { Z_OtherInformationUnit *oi; - if ((oi = yaz_oi_update(otherInformation, 0, oid, 1, delete_flag)) && + if ((oi = yaz_oi_update(otherInformation, 0, oid, categoryValue, + delete_flag)) && oi->which == Z_OtherInfo_characterInfo) return oi->information.characterInfo; return 0; -- 1.7.10.4