diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index ce40ddd442..368d539bcd 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -1940,7 +1940,7 @@ static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self) source = convert_encoding(StringValue(source)); StringValue(source); json->len = RSTRING_LEN(source); - json->source = RSTRING_PTR(source);; + json->source = RSTRING_PTR(source); json->Vsource = source; return self; } diff --git a/ext/json/parser/parser.rl b/ext/json/parser/parser.rl index 430f3c45b3..c627014593 100644 --- a/ext/json/parser/parser.rl +++ b/ext/json/parser/parser.rl @@ -835,7 +835,7 @@ static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self) source = convert_encoding(StringValue(source)); StringValue(source); json->len = RSTRING_LEN(source); - json->source = RSTRING_PTR(source);; + json->source = RSTRING_PTR(source); json->Vsource = source; return self; }