From 5053dee0c4d74ee87d8068fc1230eb721262e786 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 28 Aug 2003 18:46:54 +0000 Subject: [PATCH] Fix for no preferredSyntax Set --- src/yaz-z-cache.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/yaz-z-cache.cpp b/src/yaz-z-cache.cpp index a79f6c1..8571410 100644 --- a/src/yaz-z-cache.cpp +++ b/src/yaz-z-cache.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2002-2003, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-cache.cpp,v 1.3 2003-07-25 19:28:07 adam Exp $ + * $Id: yaz-z-cache.cpp,v 1.4 2003-08-28 18:46:54 adam Exp $ */ #include @@ -143,6 +143,8 @@ int Yaz_RecordCache::match (Yaz_RecordCache_Entry *entry, if (!match) return 0; + if (!syntax) + return 0; // See if offset, OID match.. if (entry->m_offset == offset && entry->m_record->which == Z_NamePlusRecord_databaseRecord && -- 1.7.10.4