m17n-lib/m17n-lib-fix-warnings.diff
Takashi Iwai c815115e68 Accepting request 77712 from home:tiwai:branches:M17N
- Update to version 1.6.2: bug fix release; see ChangeLog
- Fix compile warnings
- Split libm17n0 subpackage for shared libraries
- Add baselibs.conf

OBS-URL: https://build.opensuse.org/request/show/77712
OBS-URL: https://build.opensuse.org/package/show/M17N/m17n-lib?expand=0&rev=7
2011-08-02 16:17:59 +00:00

37 lines
913 B
Diff

---
src/font.c | 5 +++--
src/fontset.c | 1 -
2 files changed, 3 insertions(+), 3 deletions(-)
--- a/src/font.c
+++ b/src/font.c
@@ -1354,7 +1354,7 @@
{
int i;
MSymbol spec_list[MFONT_REGISTRY + 1];
- MSymbol registry;
+ MSymbol registry = Mnil;
char *reg;
MFONT_INIT (spec);
@@ -1365,7 +1365,8 @@
MERROR (MERROR_FONT, Mnil);
spec_list[i] = MPLIST_SYMBOL (plist);
}
- registry = spec_list[i - 1];
+ if (i > 0)
+ registry = spec_list[i - 1];
if (i > 1 && registry != Mnil)
{
reg = MSYMBOL_NAME (registry);
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -846,7 +846,6 @@
if (MPLIST_KEY (plist) != Mlatin)
request.property[MFONT_FOUNDRY]
- = request.property[MFONT_FAMILY]
= request.property[MFONT_FAMILY] = 0;
if ((per_lang = mplist_get (MPLIST_PLIST (plist), language))
&& (rfont = try_font_group (realized, &request, per_lang,