From: Eric Engestrom Date: Wed, 8 May 2019 15:19:23 +0000 (+0100) Subject: i965_asm: avoid free()ing uninitialized pointers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c6af0c8b0d829f314a505e4f1e2726f6af48440;p=mesa.git i965_asm: avoid free()ing uninitialized pointers Signed-off-by: Eric Engestrom Reviewed-by: Lionel Landwerlin --- 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[] = {