Skip to content

Commit

Permalink
Initialize str_locale since convert may not initialize them
Browse files Browse the repository at this point in the history
  • Loading branch information
yne authored and flyingmutant committed Feb 25, 2016
1 parent 8cb0992 commit def90c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion u_collate.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int u_strcoll(const char *str1, const char *str2)
if (using_utf8) {
result = strcoll(str1, str2);
} else {
char *str1_locale, *str2_locale;
char *str1_locale = NULL, *str2_locale = NULL;

convert(str1, -1, &str1_locale, -1, charset, "UTF-8");
convert(str2, -1, &str2_locale, -1, charset, "UTF-8");
Expand Down

0 comments on commit def90c3

Please sign in to comment.