summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/string.c b/string.c
index 1f02ebff49..47429acefc 100644
--- a/string.c
+++ b/string.c
@@ -7678,7 +7678,6 @@ ID
rb_to_id(VALUE name)
{
VALUE tmp;
- ID id;
switch (TYPE(name)) {
default:
@@ -7696,7 +7695,7 @@ rb_to_id(VALUE name)
case T_SYMBOL:
return SYM2ID(name);
}
- return id;
+ return Qnil; /* not reached */
}
/*