Skip to content

Commit

Permalink
Merge pull request #2022 from mgreter/bugfix/issue_2017
Browse files Browse the repository at this point in the history
Add check in weave to avoid segfault
  • Loading branch information
mgreter committed Apr 21, 2016
2 parents dad3022 + f6167a2 commit 445ad3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,7 @@ namespace Sass {
Node current = afters.collection()->front().clone(ctx);
afters.collection()->pop_front();
DEBUG_PRINTLN(WEAVE, "CURRENT: " << current)
if (current.collection()->size() == 0) continue;

Node last_current = Node::createCollection();
last_current.collection()->push_back(current.collection()->back());
Expand Down

0 comments on commit 445ad3c

Please sign in to comment.