Skip to content

Commit 58b1170

Browse files
Fix empty string encoding mappings to NULL
1 parent 4d0942a commit 58b1170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mysql2/mysql_enc_to_ruby.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ static const char *mysql2_mysql_enc_to_rb[] = {
5454
"macRoman",
5555
"UTF-16",
5656
"UTF-16",
57-
"",
57+
NULL,
5858
"Windows-1256",
5959
"Windows-1257",
6060
"Windows-1257",
6161
"UTF-32",
6262
"UTF-32",
63-
"",
63+
NULL,
6464
"ASCII-8BIT",
6565
NULL,
6666
"US-ASCII",

0 commit comments

Comments
 (0)