From: Adam Dickmeiss Date: Mon, 20 Feb 2012 14:55:17 +0000 (+0100) Subject: Skip missing ccl_map values X-Git-Tag: v1.3.24~6 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=ad61dd21aed42423f9337743fbc727b01e9e5a27;p=metaproxy-moved-to-github.git Skip missing ccl_map values --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index b23fa0e..a79a19c 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -545,8 +545,11 @@ yf::Zoom::SearchablePtr yf::Zoom::Impl::parse_torus_record(const xmlNode *ptr) "cclmap_", 7)) { std::string value = mp::xml::get_text(ptr); - ccl_qual_fitem(s->ccl_bibset, value.c_str(), - (const char *) ptr->name + 7); + if (value.length() > 0) + { + ccl_qual_fitem(s->ccl_bibset, value.c_str(), + (const char *) ptr->name + 7); + } } else if (!strncmp((const char *) ptr->name, "sortmap_", 8))