1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
ko1 2017-11-16 05:45:44 +00:00
parent 8c15f40acf
commit 15abb96177

2
vm.c
View file

@ -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);
}