aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authorsorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-18 14:22:23 +0000
committersorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-18 14:22:23 +0000
commit524817bb0b9e149faccc8020f6c4160e9e0bd8cc (patch)
tree97acdfc2d72cdc6fdd9298bfd2e0bab2dd146c5b /vm_eval.c
parent55a9667de3dfd78ad771756352158e7b3ee9765c (diff)
downloadruby-524817bb0b9e149faccc8020f6c4160e9e0bd8cc.tar.gz
* vm_eval.c (eval_string_with_cref): Unify to use NIL_P.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 5ae3e78b92..7b11e38d84 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1223,7 +1223,7 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, NODE *const cref_arg,
bind = Check_TypedStruct(scope, &ruby_binding_data_type);
{
envval = bind->env;
- if (absolute_path == Qnil && !NIL_P(bind->path)) {
+ if (NIL_P(absolute_path) && !NIL_P(bind->path)) {
file = bind->path;
line = bind->first_lineno;
absolute_path = rb_current_realfilepath();