aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 1fcd3ccc85..b9863b8e25 100644
--- a/string.c
+++ b/string.c
@@ -232,7 +232,7 @@ rb_fstring(VALUE str)
do {
ret = str;
st_update(frozen_strings, (st_data_t)str, fstr_update_callback, (st_data_t)&ret);
- } while (ret != Qundef);
+ } while (ret == Qundef);
return ret;
}