diff options
author | Eric Engestrom <[email protected]> | 2019-05-08 16:19:23 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-05-09 10:03:15 +0000 |
commit | 6c6af0c8b0d829f314a505e4f1e2726f6af48440 (patch) | |
tree | 3f322c92b4ada35d9ba15f23327a6b9341920c83 /src | |
parent | 51597eca84409f7f6f50d8ccc0cdfdc1c6905141 (diff) |
i965_asm: avoid free()ing uninitialized pointers
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/tools/i965_asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/tools/i965_asm.c b/src/intel/tools/i965_asm.c index 6093b69f0b0..a8e7fe6eff0 100644 --- a/src/intel/tools/i965_asm.c +++ b/src/intel/tools/i965_asm.c @@ -102,7 +102,7 @@ int main(int argc, char **argv) int offset = 0, err; int start_offset = 0; struct disasm_info *disasm_info; - struct gen_device_info *devinfo; + struct gen_device_info *devinfo = NULL; int result = EXIT_FAILURE; const struct option i965_asm_opts[] = { |