summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-19 02:58:43 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-19 02:58:43 +0000
commite47c4e38a8e9cdd82417ccb514b132e28ee084a8 (patch)
tree9cde65a4f4b145c377818774096c6fb9ed55b601 /ext/readline
parentd998ba1c3ca32260a111b85ddab1dd1e564b16f7 (diff)
* ext/readline/readline.c (readline_s_get_special_prefixes): suppress
warning: unitinialized instance variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index b6b4611..97b13b6 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -1248,6 +1248,7 @@ readline_s_get_special_prefixes(VALUE self)
{
VALUE str;
rb_secure(4);
+ if (rl_special_prefixes == NULL) return Qnil;
str = rb_ivar_get(mReadline, id_special_prefixes);
if (!NIL_P(str)) {
str = rb_str_dup_frozen(str);