Module Name: src
Committed By: tnn
Date: Mon Aug 7 20:35:21 UTC 2023
Modified Files:
src/usr.sbin/makemandb: custom_apropos_tokenizer.c
Log Message:
makemakedb: don't return uninitialized token length if stemming fails
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/makemandb/custom_apropos_tokenizer.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/makemandb/custom_apropos_tokenizer.c
diff -u src/usr.sbin/makemandb/custom_apropos_tokenizer.c:1.5 src/usr.sbin/makemandb/custom_apropos_tokenizer.c:1.6
--- src/usr.sbin/makemandb/custom_apropos_tokenizer.c:1.5 Thu Aug 3 07:49:23 2023
+++ src/usr.sbin/makemandb/custom_apropos_tokenizer.c Mon Aug 7 20:35:21 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: custom_apropos_tokenizer.c,v 1.5 2023/08/03 07:49:23 rin Exp $ */
+/* $NetBSD: custom_apropos_tokenizer.c,v 1.6 2023/08/07 20:35:21 tnn Exp $ */
/*
** 2006 September 30
**
@@ -719,9 +719,9 @@ aproposPorterNext(
size_t temp;
int stemStatus = do_stem(&z[iStartOffset], n, c->zToken, &temp);
- *pnBytes = temp;
if (stemStatus != SQLITE_OK)
return stemStatus;
+ *pnBytes = temp;
*pzToken = c->zToken;
*piStartOffset = iStartOffset;