Skip to content

Commit 3a54b25

Browse files
authored
Merge pull request #93 from nobu/c90
Fix mixed declarations and code
2 parents 813237a + 886c829 commit 3a54b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/cgi/escape/escape.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ escaped_length(VALUE str)
4545
static VALUE
4646
optimized_escape_html(VALUE str)
4747
{
48+
VALUE escaped;
4849
VALUE vbuf;
4950
char *buf = ALLOCV_N(char, vbuf, escaped_length(str));
5051
const char *cstr = RSTRING_PTR(str);
@@ -63,7 +64,6 @@ optimized_escape_html(VALUE str)
6364
}
6465
}
6566

66-
VALUE escaped;
6767
if (RSTRING_LEN(str) < (dest - buf)) {
6868
escaped = rb_str_new(buf, dest - buf);
6969
preserve_original_state(str, escaped);

0 commit comments

Comments
 (0)