[HarfBuzz] [PATCH 1/1] [blob] Fix the initialization order
Behdad Esfahbod
behdad at behdad.org
Wed Sep 21 13:50:57 PDT 2011
Fixed. Thanks.
On 09/20/11 12:55, James Cloos wrote:
> 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 */
More information about the HarfBuzz
mailing list