Skip to content

Commit

Permalink
Use reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstemm committed May 2, 2018
1 parent ec09ff2 commit ad482d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/engine/rules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void falco_rules::load_rules(const string &rules_content,
fields.push_back(field_base + "$");
}

for(auto field : fields)
for(auto &field : fields)
{
lua_pushstring(m_ls, field.c_str());
lua_pushnumber(m_ls, 1);
Expand Down

0 comments on commit ad482d8

Please sign in to comment.