summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/string.c b/string.c
index 382feb4d84..a2287b8f28 100644
--- a/string.c
+++ b/string.c
@@ -4313,9 +4313,10 @@ rb_str_crypt(str, salt)
*/
VALUE
-rb_str_intern(str)
- VALUE str;
+rb_str_intern(s)
+ VALUE s;
{
+ volatile VALUE str = s;
ID id;
if (!RSTRING(str)->ptr || RSTRING(str)->len == 0) {