summaryrefslogtreecommitdiffstats
path: root/mandoc_xr.c
diff options
context:
space:
mode:
Diffstat (limited to 'mandoc_xr.c')
-rw-r--r--mandoc_xr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mandoc_xr.c b/mandoc_xr.c
index 4d6b7825..6146741c 100644
--- a/mandoc_xr.c
+++ b/mandoc_xr.c
@@ -81,6 +81,7 @@ mandoc_xr_add(const char *sec, const char *name, int line, int pos)
xr->name = xr->hashkey + ssz;
xr->line = line;
xr->pos = pos;
+ xr->count = 1;
memcpy(xr->sec, sec, ssz);
memcpy(xr->name, name, nsz);
@@ -97,6 +98,7 @@ mandoc_xr_add(const char *sec, const char *name, int line, int pos)
return 0;
}
+ oxr->count++;
ret = (oxr->line == -1) ^ (xr->line == -1);
if (xr->line == -1)
oxr->line = -1;