X-Git-Url: http://git.indexdata.com/?p=simpleserver-moved-to-github.git;a=blobdiff_plain;f=SimpleServer.xs;h=d0fa5e9c15e1b0e43dc649728cd549cdf9b081ab;hp=80358131bbca943c761fc1af397a48a634e3f568;hb=928972af714a204ad40c80108b0751b02c5d5856;hpb=d8e22fb2b09bfacf7aa2b269cfa4a63d53b8c443 diff --git a/SimpleServer.xs b/SimpleServer.xs index 8035813..d0fa5e9 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1530,9 +1530,9 @@ int bend_scan(void *handle, bend_scan_rr *rr) buffer->term = odr_strdupn(rr->stream, ptr, len); temp = hv_fetch(scan_item, "OCCURRENCE", 10, 1); buffer->occurrences = SvIV(*temp); - if (hv_exists(scan_item, "DISPLAY_TERM", 12)) + temp = hv_fetch(scan_item, "DISPLAY_TERM", 12, 0); + if (temp) { - temp = hv_fetch(scan_item, "DISPLAY_TERM", 12, 1); ptr = SvPV(*temp, len); buffer->display_term = odr_strdupn(rr->stream, ptr,len); }