[PATCH:libXfont 3/4] Initialize (unused) data field in fsListCataloguesReq before sending it.

Alan Coopersmith alan.coopersmith at oracle.com
Tue Jan 7 23:35:27 PST 2014


Quiets cppcheck warning:
[fc/fserve.c:2972]: (error) Uninitialized variable: lcreq

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/fc/fserve.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/fc/fserve.c b/src/fc/fserve.c
index a445144..fc44d19 100644
--- a/src/fc/fserve.c
+++ b/src/fc/fserve.c
@@ -2964,6 +2964,7 @@ _fs_send_cat_sync (FSFpePtr conn)
      * by a bogus catalogue
      */
     lcreq.reqType = FS_ListCatalogues;
+    lcreq.data = 0;
     lcreq.length = (SIZEOF(fsListCataloguesReq)) >> 2;
     lcreq.maxNames = 0;
     lcreq.nbytes = 0;
-- 
1.7.9.2



More information about the xorg-devel mailing list