Mesa (master): intel: common: silence compiler warning
Lionel Landwerlin
llandwerlin at kemper.freedesktop.org
Mon Oct 30 17:16:10 UTC 2017
Module: Mesa
Branch: master
Commit: a1faf48636f438992b17be50dec656a0c74c5585
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1faf48636f438992b17be50dec656a0c74c5585
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Fri Oct 27 17:44:14 2017 +0100
intel: common: silence compiler warning
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/intel/common/gen_decoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c
index 85880143f0..cd1894b85f 100644
--- a/src/intel/common/gen_decoder.c
+++ b/src/intel/common/gen_decoder.c
@@ -569,7 +569,7 @@ gen_spec_load(const struct gen_device_info *devinfo)
{
struct parser_context ctx;
void *buf;
- uint8_t *text_data;
+ uint8_t *text_data = NULL;
uint32_t text_offset = 0, text_length = 0, total_length;
uint32_t gen_10 = devinfo_to_gen(devinfo);
More information about the mesa-commit
mailing list