aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/1041-nx-X11-lib-font-fc-fserve.c-initialize-remainin.full.patch
blob: b22ee902744301810b8fdb628f7ad5bcd901442f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From b04f11915e29d9563d279e1326f61b50ea414dba Mon Sep 17 00:00:00 2001
From: Mihai Moldovan <ionic@ionic.de>
Date: Mon, 16 Feb 2015 06:03:48 +0100
Subject: [PATCH 01/02] nx-X11/lib/font/fc/fserve.c: initialize remaining
 bufleft variables.

---
 nx-X11/lib/font/fc/fserve.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -1917,7 +1917,7 @@ fs_read_glyphs(FontPathElementPtr fpe, F
     FontInfoPtr		    pfi = &pfont->info;
     fsQueryXBitmaps16Reply  *rep;
     char		    *buf;
-    long		    bufleft; /* length of reply left to use */
+    long		    bufleft = 0; /* length of reply left to use */
     fsOffset32		    *ppbits;
     fsOffset32		    local_off;
     char		    *off_adr;
@@ -2501,7 +2501,7 @@ fs_read_list_info(FontPathElementPtr fpe
     FSBlockedListInfoPtr	binfo = (FSBlockedListInfoPtr) blockrec->data;
     fsListFontsWithXInfoReply	*rep;
     char			*buf;
-    long			bufleft;
+    long			bufleft = 0;
     FSFpePtr			conn = (FSFpePtr) fpe->private;
     fsPropInfo			*pi;
     fsPropOffset		*po;