summaryrefslogtreecommitdiff
path: root/user/perl-re-engine-re2/fix-nullptr-retval.patch
blob: 251d8e1acadb1ba5405de3d7ffee3b51f656f007 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur a/re2/re2/dfa.cc b/re2/re2/dfa.cc
--- a/re2/re2/dfa.cc	2022-04-22 19:08:28.597201892 +0000
+++ b/re2/re2/dfa.cc	2022-04-22 19:09:19.608577242 +0000
@@ -1734,7 +1734,7 @@
     return false;
   }
   if (params.start == DeadState)
-    return NULL;
+    return false;
   if (params.start == FullMatchState) {
     if (run_forward == want_earliest_match)
       *epp = text.begin();