summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09>2013-11-11 21:36:41 +0800
committerzeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09>2013-11-11 21:36:41 +0800
commit632b29ea8959ca990ced079901a4769a2cad9237 (patch)
tree3b4cd93f9b30662371d33e26e71862305b47e231
parent31cd61d644cf92e3dd4933acd17106324b50a64e (diff)
downloadxorg-devel-ports-632b29ea8959ca990ced079901a4769a2cad9237.tar.gz
xorg-devel-ports-632b29ea8959ca990ced079901a4769a2cad9237.tar.zst
xorg-devel-ports-632b29ea8959ca990ced079901a4769a2cad9237.zip
Plug use before initialization.
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@1224 058c260c-8361-11dd-a0ac-aa2bafec7d09
-rw-r--r--x11/libxcb/files/patch-src__c_client.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/x11/libxcb/files/patch-src__c_client.py b/x11/libxcb/files/patch-src__c_client.py
new file mode 100644
index 0000000..bfd9524
--- /dev/null
+++ b/x11/libxcb/files/patch-src__c_client.py
@@ -0,0 +1,34 @@
+--- src/c_client.py.orig 2013-11-11 14:30:55.471622828 +0100
++++ src/c_client.py 2013-11-11 14:32:05.334624142 +0100
+@@ -1133,11 +1133,11 @@
+ _c(' %s *xcb_out = *_buffer;', self.c_type)
+ _c(' unsigned int xcb_out_pad = -sizeof(%s) & 3;', self.c_type)
+ _c(' unsigned int xcb_buffer_len = sizeof(%s) + xcb_out_pad;', self.c_type)
+- _c(' unsigned int xcb_align_to;')
++ _c(' unsigned int xcb_align_to = 0;')
+ else:
+ _c(' char *xcb_out = *_buffer;')
+ _c(' unsigned int xcb_buffer_len = 0;')
+- _c(' unsigned int xcb_align_to;')
++ _c(' unsigned int xcb_align_to = 0;')
+ prefix = [('_aux', '->', self)]
+ aux_ptr = 'xcb_out'
+
+@@ -1160,7 +1160,7 @@
+ _c(' unsigned int xcb_buffer_len = 0;')
+ _c(' unsigned int xcb_block_len = 0;')
+ _c(' unsigned int xcb_pad = 0;')
+- _c(' unsigned int xcb_align_to;')
++ _c(' unsigned int xcb_align_to = 0;')
+
+ elif 'sizeof' == context:
+ param_names = [p[2] for p in params]
+@@ -1205,7 +1205,7 @@
+ _c(' unsigned int xcb_buffer_len = 0;')
+ _c(' unsigned int xcb_block_len = 0;')
+ _c(' unsigned int xcb_pad = 0;')
+- _c(' unsigned int xcb_align_to;')
++ _c(' unsigned int xcb_align_to = 0;')
+
+ _c('')
+ for t in temp_vars: