intel: common: silence compiler warning
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 27 Oct 2017 16:44:14 +0000 (17:44 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 30 Oct 2017 17:15:50 +0000 (17:15 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/common/gen_decoder.c

index 85880143f00ebcbb95165134ac7291bb3735d93d..cd1894b85fd688a30547293240dddbd9d17a4f60 100644 (file)
@@ -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);