File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,9 @@ namespace Sass {
128
128
template <typename T>
129
129
void Environment<T>::set_lexical(const std::string& key, T val)
130
130
{
131
- auto cur = this ; bool shadow = false ;
132
- while (cur->is_lexical () || shadow) {
131
+ auto cur = this ;
132
+ bool shadow = false ;
133
+ while ((cur && cur->is_lexical ()) || shadow) {
133
134
if (cur->has_local (key)) {
134
135
cur->set_local (key, val);
135
136
return ;
Original file line number Diff line number Diff line change @@ -2081,7 +2081,7 @@ namespace Sass {
2081
2081
error (" \" " + str_sel + " \" failed to @extend \" " + str_ext + " \" .\n "
2082
2082
" The selector \" " + str_ext + " \" was not found.\n "
2083
2083
" Use \" @extend " + str_ext + " !optional\" if the"
2084
- " extend should be able to fail." , ext->pstate ());
2084
+ " extend should be able to fail." , ( ext ? ext ->pstate () : NULL ));
2085
2085
}
2086
2086
}
2087
2087
Original file line number Diff line number Diff line change @@ -1272,7 +1272,6 @@ namespace Sass {
1272
1272
bool right_ws = peek < css_comments >() != NULL ;
1273
1273
operators.push_back ({ op, left_ws, right_ws });
1274
1274
operands.push_back (parse_expression ());
1275
- left_ws = peek < css_comments >() != NULL ;
1276
1275
}
1277
1276
// we are called recursively for list, so we first
1278
1277
// fold inner binary expression which has delayed
You can’t perform that action at this time.
0 commit comments