Fixed bug #830: pkg-config support. YAZ installs yaz.pc for Debian
[yaz-moved-to-github.git] / src / otherinfo.c
index 4cf95c8..fe2b637 100644 (file)
@@ -1,8 +1,8 @@
 /*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2007, 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.6 2007-01-03 08:42:15 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;