summaryrefslogtreecommitdiff
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 6a8e24a1bf..26e38a9961 100644
--- a/string.c
+++ b/string.c
@@ -6277,7 +6277,7 @@ str_undump(VALUE str)
const char *s = RSTRING_PTR(str);
const char *s_end = RSTRING_END(str);
long len = RSTRING_LEN(str);
- rb_encoding *enc = rb_enc_get(str), *forced_enc;
+ rb_encoding *enc = rb_enc_get(str), *forced_enc = NULL;
int n;
unsigned int c;
enum undump_source_format source_format;