Fix suspicious return expression which causes junk to be returned.

reviewed by: plam
This commit is contained in:
Patrick Lam 2006-03-03 06:11:31 +00:00
parent b152a85bdc
commit b36f2a39d0
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2006-03-02 Egmont Koblinger <egmont@uhulinux.hu>
reviewed by: plam
* src/fclang.c (FcCharSetForLang):
Fix suspicious return expression which causes junk
to be returned.
2006-02-24 Patrick Lam <plam@mit.edu> 2006-02-24 Patrick Lam <plam@mit.edu>
* ChangeLog: * ChangeLog:
* README: * README:

View File

@ -216,7 +216,7 @@ FcCharSetForLang (const FcChar8 *lang)
} }
if (country == -1) if (country == -1)
return 0; return 0;
return &fcLangCharSets[i].charset; return &fcLangCharSets[country].charset;
} }
FcLangSet * FcLangSet *