diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-22 11:24:38 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-22 11:24:38 +0000 |
commit | 7bfaa467ce944bf9efbff2299865b5f4755473b3 (patch) | |
tree | adad16ce6f16be8936f6c2bb78634655bbccbc95 /string.c | |
parent | 32dcb81d5851035de6b47ccfd760ee5b78f58d93 (diff) | |
download | ruby-7bfaa467ce944bf9efbff2299865b5f4755473b3.tar.gz |
* string.c (rb_fstring): fix condition (easy to cause infinite loop!).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |