]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
cplusplus.Move
authorgtsoul-tech <gtsoulkanakis@gmail.com>
Tue, 28 May 2024 11:15:03 +0000 (14:15 +0300)
committergtsoul-tech <gtsoulkanakis@gmail.com>
Tue, 28 May 2024 11:15:03 +0000 (14:15 +0300)
util/ng_corpus_generator.cpp

index cb195eaf1a152632f193bc37ee2dd2e146a20cd9..69e7c4ef3f4a5d3c44254286d805ab2c8de04144 100644 (file)
@@ -185,7 +185,7 @@ void findPaths(const NGHolder &g, CorpusProperties &cProps,
                 continue;
             }
 
-            if (!contains(one_way_in, v) &&
+            if (p && !contains(one_way_in, v) &&
                 has_greater_than(p->begin(), p->end(), v, cycleLimit)) {
                 // Note that vertices that only have one predecessor don't need
                 // their cycle limit checked, as their predecessors will have