diff options
author | Caolan McNamara <caolanm@redhat.com> | 2008-10-17 17:21:49 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-10-17 17:21:49 -0400 |
commit | 8bed01275a7c7caf8f777e4074a5ee1ba1c2b3e7 (patch) | |
tree | 1059fc6c07b1305b0005515c9646fc7e57cca444 | |
parent | 8ce4f47adb343aed069862a05b5e315173b17823 (diff) |
Bug #17644: Fix valgrind warning in _SmcProcessMessage
-rw-r--r-- | src/sm_client.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sm_client.c b/src/sm_client.c index 03ffc0e..778a740 100644 --- a/src/sm_client.c +++ b/src/sm_client.c @@ -1,6 +1,3 @@ -/* $XdotOrg: $ */ -/* $Xorg: sm_client.c,v 1.4 2001/02/09 02:03:30 xorgcvs Exp $ */ - /* Copyright 1993, 1998 The Open Group @@ -390,6 +387,7 @@ SmProp **props; pMsg->length += WORD64COUNT (bytes); pBuf = pStart = IceAllocScratch (iceConn, bytes); + memset(pStart, 0, bytes); STORE_LISTOF_PROPERTY (pBuf, numProps, props); |