diff options
author | Patrick Lam <plam@MIT.EDU> | 2006-03-03 06:11:31 +0000 |
---|---|---|
committer | Patrick Lam <plam@MIT.EDU> | 2006-03-03 06:11:31 +0000 |
commit | b36f2a39d0ad08d5ee6757f2e419021e63b39ea4 (patch) | |
tree | d34f735ad0ce46ecb3783bbc085830a12ed3139c | |
parent | b152a85bdc5c911883af4b0e7930cbe12531d179 (diff) |
Fix suspicious return expression which causes junk to be returned.
reviewed by: plam
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/fclang.c | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -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> * ChangeLog: * README: diff --git a/src/fclang.c b/src/fclang.c index d7df89d..ab8105d 100644 --- a/src/fclang.c +++ b/src/fclang.c @@ -216,7 +216,7 @@ FcCharSetForLang (const FcChar8 *lang) } if (country == -1) return 0; - return &fcLangCharSets[i].charset; + return &fcLangCharSets[country].charset; } FcLangSet * |