Bug #5958: Also zero out the implicit pad byte in empty requests.
authorJamey Sharp <jamey@minilop.net>
Mon, 20 Nov 2006 05:48:27 +0000 (21:48 -0800)
committerJamey Sharp <jamey@minilop.net>
Mon, 20 Nov 2006 07:59:25 +0000 (23:59 -0800)
src/c-client.xsl

index 8b951cb..5df5762 100644 (file)
@@ -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" />