intel/tools: add missing variable initialisation
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 8 Aug 2018 14:26:32 +0000 (15:26 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 9 Aug 2018 10:20:18 +0000 (11:20 +0100)
Fixes: 6a60beba4089315685b8 "intel/tools: Add an error state to aub translator"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/error2aub.c

index 3407dcec0b795168c4c8d2852e46b4fd5ae813e7..2030593691cc4ba6dba0a28a137d2d3ddc52dd02 100644 (file)
@@ -205,7 +205,7 @@ main(int argc, char *argv[])
       BO_TYPE_UNKNOWN = 0,
       BO_TYPE_BATCH,
       BO_TYPE_USER,
-   } bo_type;
+   } bo_type = BO_TYPE_UNKNOWN;
    uint64_t bo_addr;
 
    char *line = NULL;