We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6a100e commit 643e253Copy full SHA for 643e253
src/environment.cpp
@@ -128,8 +128,9 @@ namespace Sass {
128
template <typename T>
129
void Environment<T>::set_lexical(const std::string& key, T val)
130
{
131
- auto cur = this; bool shadow = false;
132
- while (cur->is_lexical() || shadow) {
+ auto cur = this;
+ bool shadow = false;
133
+ while ((cur && cur->is_lexical()) || shadow) {
134
if (cur->has_local(key)) {
135
cur->set_local(key, val);
136
return;
0 commit comments