[Mesa-dev] [PATCH 3/5] intel: aubinator: retain input file in its own variable
Lionel Landwerlin
llandwerlin at gmail.com
Tue Oct 4 15:59:03 UTC 2016
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Cc: Sirisha Gandikota <Sirisha.Gandikota at intel.com>
---
src/intel/tools/aubinator.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 9939de7..459e3d4 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -1064,7 +1064,7 @@ int main(int argc, char *argv[])
struct aub_file *file;
int i;
bool found_arg_gen = false, pager = true;
- const char *value;
+ const char *value, *input_file = NULL;
char gen_file[256], gen_val[24];
const struct {
const char *name;
@@ -1120,6 +1120,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "unknown option %s\n", argv[i]);
exit(EXIT_FAILURE);
}
+ input_file = argv[i];
break;
}
}
@@ -1163,7 +1164,7 @@ int main(int argc, char *argv[])
print_help(argv[0], stderr);
exit(EXIT_FAILURE);
} else {
- file = aub_file_open(argv[i]);
+ file = aub_file_open(input_file);
}
while (aub_file_more_stuff(file))
--
2.9.3
More information about the mesa-dev
mailing list