Skip to content

Commit

Permalink
fix out of bonunds check
Browse files Browse the repository at this point in the history
(cherry picked from commit ea611b5)
  • Loading branch information
gfgtdf committed Oct 28, 2018
1 parent cd7052a commit 8e2d8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formula/function.cpp
Expand Up @@ -1368,7 +1368,7 @@ formula_function_expression::formula_function_expression(const std::string& name
, star_arg_(-1)
{
for(std::size_t n = 0; n != arg_names_.size(); ++n) {
if(arg_names_.empty() == false && arg_names_[n].back() == '*') {
if(arg_names_[n].empty() == false && arg_names_[n].back() == '*') {
arg_names_[n].resize(arg_names_[n].size() - 1);
star_arg_ = n;
break;
Expand Down

0 comments on commit 8e2d8fc

Please sign in to comment.