Skip to content

Commit c4460f3

Browse files
committed
Avoid a segfault when selector would be set to NULL
Really just a hotfix since there is still an underlying bug when extending inner of :not pseudo selector. Mostly showing when parent selectors are involved.
1 parent 3b9b5a5 commit c4460f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ast.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,9 @@ namespace Sass {
12331233
if ((*this)[i]->tail() && (*this)[i]->has_line_feed()) {
12341234
(*this)[i]->tail()->has_line_feed(true);
12351235
}
1236-
(*this)[i] = (*this)[i]->tail();
1236+
if ((*this)[i]->tail() != NULL) {
1237+
(*this)[i] = (*this)[i]->tail();
1238+
}
12371239
}
12381240
// otherwise remove the first item from head
12391241
else {

0 commit comments

Comments
 (0)