From: Patrick Lam Date: Fri, 3 Mar 2006 06:11:31 +0000 (+0000) Subject: Fix suspicious return expression which causes junk to be returned. X-Git-Tag: fc-2_3_95~51 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b36f2a39d0ad08d5ee6757f2e419021e63b39ea4;p=fontconfig.git Fix suspicious return expression which causes junk to be returned. reviewed by: plam --- diff --git a/ChangeLog b/ChangeLog index b94b0f6..f6b9fa8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-03-02 Egmont Koblinger + reviewed by: plam + + * src/fclang.c (FcCharSetForLang): + + Fix suspicious return expression which causes junk + to be returned. + 2006-02-24 Patrick Lam * 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 *