From: Marek Olšák Date: Sat, 17 Oct 2015 17:05:46 +0000 (+0200) Subject: gallium/hud: fix possible NULL pointer dereference X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=006fcc0da674ca18ebf07771e3c309997ab32798;p=mesa.git gallium/hud: fix possible NULL pointer dereference Trivial. --- diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index 95eed2698bc..ffe30b8fa79 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -987,6 +987,9 @@ hud_parse_env_var(struct hud_context *hud, const char *env) case ',': env++; + if (!pane) + break; + y += height + hud->font.glyph_height * (pane->num_graphs + 2); height = 100;