[PATCH libXft] Initialize glyph_memory to 0 instead of NULL, since it is a size, not a pointer

Jamey Sharp jamey at minilop.net
Fri Mar 19 13:57:02 PDT 2010


Might be worth noting that this was broken by commit
5957fdd9ba2aba60e90a30bc3744f76ddb27b8d2, "Janitor: Correct make
distcheck and sparse warnings." Also, perhaps, note how you discovered
it?

Anyway,
Reviewed-by: Jamey Sharp <jamey at minilop.net>

On Fri, Mar 19, 2010 at 1:37 PM, Jeff Smith <whydoubt at yahoo.com> wrote:
> Signed-off-by: Jeff Smith <whydoubt at yahoo.com>
> ---
>  src/xftdpy.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/xftdpy.c b/src/xftdpy.c
> index 0553515..cd50358 100644
> --- a/src/xftdpy.c
> +++ b/src/xftdpy.c
> @@ -160,7 +160,7 @@ _XftDisplayInfoGet (Display *dpy, FcBool createIfNecessary)
>     info->next = _XftDisplayInfo;
>     _XftDisplayInfo = info;
>
> -    info->glyph_memory = NULL;
> +    info->glyph_memory = 0;
>     info->max_glyph_memory = XftDefaultGetInteger (dpy,
>                                                   XFT_MAX_GLYPH_MEMORY, 0,
>                                                   XFT_DPY_MAX_GLYPH_MEMORY);
> --
> 1.6.0.6
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>


More information about the xorg-devel mailing list