X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzoom-z3950.c;h=5d6eb2fa2118efdafb2ad510a21ab84bf0d09827;hb=3252229521745ee6413d1a5357a6348d36f87622;hp=5fc7c25d878b570f1316d7eaf8e324e265d23552;hpb=120d41020531bb15a771971e9287b2f8f2b072ae;p=yaz-moved-to-github.git diff --git a/src/zoom-z3950.c b/src/zoom-z3950.c index 5fc7c25..5d6eb2f 100644 --- a/src/zoom-z3950.c +++ b/src/zoom-z3950.c @@ -6,6 +6,9 @@ * \file zoom-z3950.c * \brief Implements ZOOM Z39.50 handling */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -663,10 +666,10 @@ zoom_ret ZOOM_connection_Z3950_send_search(ZOOM_connection c) if (facet_list) { Z_OtherInformation **oi; yaz_oi_APDU(apdu, &oi); - if (facet_list) { - yaz_oi_set_facetlist(oi, c->odr_out, facet_list); - } + yaz_oi_set_facetlist(oi, c->odr_out, facet_list); } + else + yaz_log(YLOG_WARN, "Unable to parse facets: %s", facets); } assert(r);