[HarfBuzz] [PATCH 1/1] [blob] Fix the initialization order

James Cloos cloos at jhcloos.com
Tue Sep 20 09:55:59 PDT 2011


The fields were initialized out of order, causing a cast from
NULL to unsigned int and a cast from 0 to a pointer.

Signed-off-by: James Cloos <cloos at jhcloos.com>
---
 src/hb-blob.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/hb-blob.cc b/src/hb-blob.cc
index 58d7324..b2b1d9c 100644
--- a/src/hb-blob.cc
+++ b/src/hb-blob.cc
@@ -64,8 +64,8 @@ static hb_blob_t _hb_blob_nil = {
 
   TRUE, /* immutable */
 
-  0, /* length */
   NULL, /* data */
+  0, /* length */
   HB_MEMORY_MODE_READONLY, /* mode */
 
   NULL, /* user_data */
-- 
1.7.6.1




More information about the HarfBuzz mailing list