2020-02-12 08:27:17 +08:00
|
|
|
diff --git a/src/regcomp.c b/src/regcomp.c
|
|
|
|
--- a/src/regcomp.c
|
|
|
|
+++ b/src/regcomp.c
|
|
|
|
@@ -3880,7 +3880,7 @@ reduce_string_list(Node* node)
|
|
|
|
{
|
|
|
|
Node* prev;
|
|
|
|
Node* curr;
|
|
|
|
- Node* prev_node;
|
|
|
|
+ Node* prev_node = NULL;
|
|
|
|
Node* next_node;
|
|
|
|
|
|
|
|
prev = NULL_NODE;
|
|
|
|
diff --git a/src/regexec.c b/src/regexec.c
|
|
|
|
index ce498c6..6848c0f 100644
|
|
|
|
--- a/src/regexec.c
|
|
|
|
+++ b/src/regexec.c
|
|
|
|
@@ -4216,7 +4216,7 @@ regset_search_body_position_lead(OnigRegSet* set,
|
|
|
|
{
|
|
|
|
int r, n, i;
|
2021-10-12 05:23:56 +02:00
|
|
|
UChar *s;
|
|
|
|
- UChar *low, *high;
|
|
|
|
+ UChar *low, *high = NULL;
|
2020-02-12 08:27:17 +08:00
|
|
|
UChar* sch_range;
|
|
|
|
regex_t* reg;
|
|
|
|
OnigEncoding enc;
|