aboutsummaryrefslogtreecommitdiffstats
path: root/ext/psych
diff options
context:
space:
mode:
Diffstat (limited to 'ext/psych')
-rw-r--r--ext/psych/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/parser.c b/ext/psych/parser.c
index 0fa02b981f..eefb8e67bc 100644
--- a/ext/psych/parser.c
+++ b/ext/psych/parser.c
@@ -55,7 +55,7 @@ static VALUE parse(VALUE self, VALUE yaml)
int done = 0;
#ifdef HAVE_RUBY_ENCODING_H
int encoding = rb_enc_find_index("ASCII-8BIT");
- rb_encoding * internal_enc;
+ rb_encoding * internal_enc = 0;
#endif
VALUE handler = rb_iv_get(self, "@handler");