Skip to content

Commit 0e31894

Browse files
authored
Update geoip_util.cpp
1 parent 717e8ad commit 0e31894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/geoip/geoip_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ const char *getLang(int target)
184184
if (translator->GetLanguageInfo(langid, &code, NULL))
185185
{
186186
if (strcmp(code, "chi") == 0 || strcmp(code, "zho") == 0) {
187-
return "zh-CN";
187+
code = "zh-CN";
188188
}
189189
for (size_t i = 0; i < mmdb.metadata.languages.count; i++)
190190
{

0 commit comments

Comments
 (0)