From 879cc0a18349ea64560af1aa07f4e13f7c1fb03d Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Sun, 12 May 2024 20:25:29 +0300 Subject: [PATCH] nodes is never empty at this stage, emplace_back() is called just previously --- src/nfagraph/ng_puff.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/nfagraph/ng_puff.cpp b/src/nfagraph/ng_puff.cpp index 8f130eaa..ab43d1c6 100644 --- a/src/nfagraph/ng_puff.cpp +++ b/src/nfagraph/ng_puff.cpp @@ -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; } }