summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/variable.c b/variable.c
index 9fd075c21c..aafb6f4725 100644
--- a/variable.c
+++ b/variable.c
@@ -107,10 +107,7 @@ VALUE
rb_mod_name(VALUE mod)
{
int permanent;
- VALUE path = classname(mod, &permanent);
-
- if (!NIL_P(path)) return rb_str_dup(path);
- return path;
+ return classname(mod, &permanent);
}
static VALUE