]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
nodes is never empty at this stage, emplace_back() is called just previously 273/head
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Sun, 12 May 2024 17:25:29 +0000 (20:25 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Sun, 12 May 2024 17:25:29 +0000 (20:25 +0300)
src/nfagraph/ng_puff.cpp

index 8f130eaaad04747d5525d516bd455cd7b346ad94..ab43d1c647d38b4934548e1540d2f16e7c6be46f 100644 (file)
@@ -358,9 +358,7 @@ bool doComponent(RoseBuild &rose, ReportManager &rm, NGHolder &g, NFAVertex a,
         // single report ID on a vertex
         if (is_match_vertex(a, g)) {
             DEBUG_PRINTF("stop puffing due to vertex that leads to accept\n");
-            if (!nodes.empty()) {
-                nodes.pop_back();
-            }
+            nodes.pop_back();
             break;
         }
     }