summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-02-26 17:21:43 -0500
committerMarek Olšák <[email protected]>2020-02-27 22:53:12 -0500
commitad192385e3348b12d15f466225c2792adf42e7e7 (patch)
tree70f0cdb279634e190cc09b331edff86ff3918b90 /src/mesa/main/get.c
parent6d7b076166e6a26f68c33ea75b9f9473fc162738 (diff)
mesa: fix 11 warnings
Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3970>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 261eaf37323..8325786a396 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1548,6 +1548,8 @@ find_value(const char *func, GLenum pname, void **p, union value *v)
const struct value_desc *d;
int api;
+ *p = NULL;
+
api = ctx->API;
/* We index into the table_set[] list of per-API hash tables using the API's
* value in the gl_api enum. Since GLES 3 doesn't have an API_OPENGL* enum