aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-16 05:45:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-16 05:45:44 +0000
commit5044db7bca35a4b372ea2898e6d2e037a138f39d (patch)
tree911f9d75aa457a36bff744ca1f79e75cffa62297 /vm.c
parent7db6e5c3198715aa4f6b8f4f9dcff7cc4b637eca (diff)
downloadruby-5044db7bca35a4b372ea2898e6d2e037a138f39d.tar.gz
fix r60789.
* vm.c (rb_source_loc): fix condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index e5f2c2fd99..96cbe39877 100644
--- a/vm.c
+++ b/vm.c
@@ -1301,7 +1301,7 @@ const char *
rb_source_loc(int *pline)
{
VALUE path = rb_source_location(pline);
- if (!NIL_P(path)) return NULL;
+ if (NIL_P(path)) return NULL;
return RSTRING_PTR(path);
}