diff options
author | Marek Olšák <[email protected]> | 2020-02-26 17:21:43 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-02-27 22:53:12 -0500 |
commit | ad192385e3348b12d15f466225c2792adf42e7e7 (patch) | |
tree | 70f0cdb279634e190cc09b331edff86ff3918b90 /src/mesa/main/get.c | |
parent | 6d7b076166e6a26f68c33ea75b9f9473fc162738 (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.c | 2 |
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 |