projects
/
simpleserver-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8e22fb
)
Simplify a bit WRT DISPLAY_TERM
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 11 Feb 2013 13:23:12 +0000
(14:23 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 11 Feb 2013 13:23:12 +0000
(14:23 +0100)
SimpleServer.xs
patch
|
blob
|
history
diff --git
a/SimpleServer.xs
b/SimpleServer.xs
index
8035813
..
d0fa5e9
100644
(file)
--- 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);
}