Permalink
Browse files

Allow the variable root to be read as .

  • Loading branch information...
1 parent ef9898c commit 713014793fe0349edf6136e253021e7b2ec8b270 Evan Phoenix committed Jun 4, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 vm/agent_components.cpp
View
@@ -346,6 +346,10 @@ namespace agent {
}
void VariableAccess::read_path(Output& output, const char* ipath) {
- root_->read_path(output, ipath);
+ if(strlen(ipath) == 1 && ipath[0] == '.') {
+ root_->read(output);
+ } else {
+ root_->read_path(output, ipath);
+ }
}
}}

0 comments on commit 7130147

Please sign in to comment.