Skip to content

Commit 445ad3c

Browse files
committed
Merge pull request #2022 from mgreter/bugfix/issue_2017
Add check in weave to avoid segfault
2 parents dad3022 + f6167a2 commit 445ad3c

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)