We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 813237a + 886c829 commit 3a54b25Copy full SHA for 3a54b25
ext/cgi/escape/escape.c
@@ -45,6 +45,7 @@ escaped_length(VALUE str)
45
static VALUE
46
optimized_escape_html(VALUE str)
47
{
48
+ VALUE escaped;
49
VALUE vbuf;
50
char *buf = ALLOCV_N(char, vbuf, escaped_length(str));
51
const char *cstr = RSTRING_PTR(str);
@@ -63,7 +64,6 @@ optimized_escape_html(VALUE str)
63
64
}
65
66
- VALUE escaped;
67
if (RSTRING_LEN(str) < (dest - buf)) {
68
escaped = rb_str_new(buf, dest - buf);
69
preserve_original_state(str, escaped);
0 commit comments