Skip to content

Commit 3b1e9ff

Browse files
committed
Merge pull request #2075 from mgreter/bugfix/issue_2074
Fix segfault with calc prefix and underscore vs hyphen
2 parents 9a3f4cb + 7700871 commit 3b1e9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ namespace Sass {
828828
Backtrace here(backtrace(), c->pstate(), ", in function `" + c->name() + "`");
829829
exp.backtrace_stack.push_back(&here);
830830
// eval the body if user-defined or special, invoke underlying CPP function if native
831-
if (body && !Prelexer::re_special_fun(c->name().c_str())) { result = body->perform(this); }
831+
if (body && !Prelexer::re_special_fun(name.c_str())) { result = body->perform(this); }
832832
else if (func) { result = func(fn_env, *env, ctx, def->signature(), c->pstate(), backtrace()); }
833833
if (!result) error(std::string("Function ") + c->name() + " did not return a value", c->pstate());
834834
exp.backtrace_stack.pop_back();

0 commit comments

Comments
 (0)