diff options
author | Rafael Antognolli <[email protected]> | 2018-06-12 12:18:19 -0700 |
---|---|---|
committer | Rafael Antognolli <[email protected]> | 2018-06-15 09:03:10 -0700 |
commit | 9e1f208795b62ad4825aaafd5b740c979bb67048 (patch) | |
tree | 4440504654234a812a944c834219d30f870c3e0c | |
parent | f8e2c4c57c329f79b939b20a434acc3cf89faef8 (diff) |
intel/aubinator: Use int to store getopt_long flags.
getopt_long flag parameter is an int pointer, so if we use bool to store
those values, when getopt_long writes to one of them, it might end up
overwriting the next one.
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/intel/tools/aubinator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c index 3120e82b22e..c8d79ae377d 100644 --- a/src/intel/tools/aubinator.c +++ b/src/intel/tools/aubinator.c @@ -56,8 +56,8 @@ /* options */ -static bool option_full_decode = true; -static bool option_print_offsets = true; +static int option_full_decode = true; +static int option_print_offsets = true; static int max_vbo_lines = -1; static enum { COLOR_AUTO, COLOR_ALWAYS, COLOR_NEVER } option_color; |