Skip to content

Commit

Permalink
Fix segfault on empty custom properties
Browse files Browse the repository at this point in the history
Originally reported in sass/sassc#225
  • Loading branch information
xzyfer committed Apr 16, 2018
1 parent 9266d26 commit 4b84e71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/expand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ namespace Sass {
new_p = SASS_MEMORY_NEW(String_Constant, old_p->pstate(), str);
}
Expression_Obj value = d->value()->perform(&eval);
if (value) value = value->perform(&eval);
Block_Obj bb = ab ? operator()(ab) : NULL;
if (!bb) {
if (!value || (value->is_invisible() && !d->is_important())) return 0;
Expand Down

0 comments on commit 4b84e71

Please sign in to comment.