summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/hud
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-10-17 19:05:46 +0200
committerMarek Olšák <[email protected]>2015-10-17 19:06:27 +0200
commit006fcc0da674ca18ebf07771e3c309997ab32798 (patch)
treed08a01e80cd8e8d018e14e7e7533b22d85c50031 /src/gallium/auxiliary/hud
parent3272f632eec768c79000836e9bc45b90229789e7 (diff)
gallium/hud: fix possible NULL pointer dereference
Trivial.
Diffstat (limited to 'src/gallium/auxiliary/hud')
-rw-r--r--src/gallium/auxiliary/hud/hud_context.c3
1 files changed, 3 insertions, 0 deletions
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;