summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/gem_wsim.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c
index e0709487..5a4753d9 100644
--- a/benchmarks/gem_wsim.c
+++ b/benchmarks/gem_wsim.c
@@ -483,6 +483,14 @@ parse_workload(struct w_arg *arg, unsigned int flags, struct workload *app_w)
goto add_step;
}
+ if (!field) {
+ if (verbose)
+ fprintf(stderr,
+ "Parse error at step %u!\n",
+ nr_steps);
+ return NULL;
+ }
+
tmp = atoi(field);
if (tmp < 0) {
if (verbose)