summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-11-19 21:48:27 -0800
committerJamey Sharp <jamey@minilop.net>2006-11-19 23:59:25 -0800
commit3d9bb02012b35fd51ed3352d0bd974a0f6e439d8 (patch)
tree99f7a03691f9a39202be7db399ad6aa5524c1dea
parent3fa50020d2d9b78e22cf3597f4688c4e22df5121 (diff)
Bug #5958: Also zero out the implicit pad byte in empty requests.
-rw-r--r--src/c-client.xsl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c-client.xsl b/src/c-client.xsl
index 8b951cb..5df5762 100644
--- a/src/c-client.xsl
+++ b/src/c-client.xsl
@@ -722,6 +722,10 @@ authorization from the authors.
<l><xsl:value-of select="@ref" /> xcb_out;</l>
<l />
+ <xsl:if test="not ($ext) and not($struct//*[(self::field or self::exprfield or self::pad)
+ and not(boolean(@no-assign))])">
+ <l>xcb_out.pad0 = 0;</l>
+ </xsl:if>
<xsl:apply-templates select="$struct//*[(self::field or self::exprfield or self::pad)
and not(boolean(@no-assign))]"
mode="assign" />