aboutsummaryrefslogtreecommitdiff
path: root/dependencies/uthash/tests/test76.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-09-15 17:04:21 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-09-15 17:04:21 +0200
commit4edf3bf7e6024459dcd807c51ae5d7c81c3a646d (patch)
tree713d29a46a15f55979260fa980e55af7e9680a8d /dependencies/uthash/tests/test76.c
parent2a5e5a020b14229e312294a345d3f079002f24e8 (diff)
parent1fa53c5bf8d0717f784c79abaa5111f88ab00221 (diff)
Merge commit '1fa53c5bf8d0717f784c79abaa5111f88ab00221'
Diffstat (limited to 'dependencies/uthash/tests/test76.c')
-rw-r--r--dependencies/uthash/tests/test76.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/dependencies/uthash/tests/test76.c b/dependencies/uthash/tests/test76.c
index a18685cae..ee890f6a2 100644
--- a/dependencies/uthash/tests/test76.c
+++ b/dependencies/uthash/tests/test76.c
@@ -8,8 +8,8 @@ int main()
char V_NeedleStr[] = "needle\0s";
long *V_KMP_Table;
long V_FindPos;
- size_t V_StartPos;
- size_t V_FindCnt;
+ size_t V_StartPos = 0;
+ size_t V_FindCnt = 0;
utstring_new(s);
@@ -24,9 +24,6 @@ int main()
if (V_KMP_Table != NULL) {
_utstring_BuildTable(utstring_body(t), utstring_len(t), V_KMP_Table);
- V_FindCnt = 0;
- V_FindPos = 0;
- V_StartPos = 0;
do {
V_FindPos = _utstring_find(utstring_body(s) + V_StartPos,
utstring_len(s) - V_StartPos,