Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fontconfig
fontconfig
Commits
19ea60bc
Commit
19ea60bc
authored
Dec 21, 2005
by
Patrick Lam
Browse files
Avoid check on _fcBankId nullness and fix case where it used to crash.
parent
3bfae75d
Changes
3
Show whitespace changes
Inline
Side-by-side
ChangeLog
View file @
19ea60bc
...
...
@@ -6,6 +6,13 @@
Bump version to 2.3.93.
2005-12-20 Patrick Lam <plam@mit.edu>
* src/fccharset.c (FcLangCharSetPopulate):
* src/fcint.h (FcCacheBankToIndex):
Avoid check on _fcBankId nullness and fix case where it used to
crash.
2005-12-20 Patrick Lam <plam@mit.edu>
* src/fcxml.c (FcConfigParseAndLoad):
...
...
src/fccharset.c
View file @
19ea60bc
...
...
@@ -48,7 +48,7 @@ FcCharSetEnsureBank (int bi);
void
FcLangCharSetPopulate
(
void
)
{
int
bi
=
FcCacheBankToIndex
(
FC_BANK_LANGS
);
int
bi
=
FcCacheBankToIndex
MTF
(
FC_BANK_LANGS
);
FcCharSetEnsureBank
(
bi
);
charsets
[
bi
]
=
0
;
numbers
[
bi
]
=
(
FcChar16
*
)
&
langBankNumbers
;
...
...
src/fcint.h
View file @
19ea60bc
...
...
@@ -469,7 +469,7 @@ FcCacheBankToIndexMTF (int bank);
static
__inline__
int
FcCacheBankToIndex
(
int
bank
)
{
return
(
_fcBankId
&&
_fcBankId
[
*
_fcBankIdx
]
==
bank
)
?
*
_fcBankIdx
:
FcCacheBankToIndexMTF
(
bank
);
return
(
_fcBankId
[
*
_fcBankIdx
]
==
bank
)
?
*
_fcBankIdx
:
FcCacheBankToIndexMTF
(
bank
);
}
const
char
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment