Skip to content

Commit f6167a2

Browse files
committed
Add check in weave to avoid segfault
1 parent dad3022 commit f6167a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/extend.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,6 +1463,7 @@ namespace Sass {
14631463
Node current = afters.collection()->front().clone(ctx);
14641464
afters.collection()->pop_front();
14651465
DEBUG_PRINTLN(WEAVE, "CURRENT: " << current)
1466+
if (current.collection()->size() == 0) continue;
14661467

14671468
Node last_current = Node::createCollection();
14681469
last_current.collection()->push_back(current.collection()->back());

0 commit comments

Comments
 (0)