Permalink
Browse files

Fix VMException copy constructor

This was not copying the reason from the passed exception.
  • Loading branch information...
1 parent 2ffbc39 commit bc8873c95d8896be6aaa16f98616b30234762ad8 @dbussink dbussink committed Jan 26, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 vm/exception.cpp
View
2 vm/exception.cpp
@@ -177,7 +177,7 @@ namespace rubinius {
backtrace = new VMException::Backtrace(*other.backtrace);
}
if(other.reason) {
- reason = strdup(reason);
+ reason = strdup(other.reason);
}
}

0 comments on commit bc8873c

Please sign in to comment.