Skip to content

Commit

Permalink
fix variable registration (gh#yast/ycp-killer#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jul 24, 2013
1 parent eac3c89 commit 9b48af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binary/YRubyNamespace.cc
Expand Up @@ -270,7 +270,7 @@ int YRubyNamespace::addVariables(VALUE module, int offset)
int j=0;
for (int i = 0; i < RARRAY_LEN(variables); ++i)
{
VALUE variable = rb_ary_entry(variables,j);
VALUE variable = rb_ary_entry(variables,i);
VALUE variable_name = rb_funcall(variable, rb_intern("variable"), 0);
if (getenv("Y2ALLGLOBAL") == NULL && RTEST(rb_funcall(variable, rb_intern("private?"), 0)))
{
Expand Down

0 comments on commit 9b48af8

Please sign in to comment.