diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-07-06 09:27:00 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-07-06 09:47:30 +0100 |
commit | a2880c7146777a9d030ee198d2bfb79a81b2c8a5 (patch) | |
tree | fbb1e4c40db3a11e0c95bb3aabcd4b842fe89983 /tests | |
parent | 2202b064d8089db1092903771bafc7272719a6fe (diff) |
igt/gem_sync: Fix uninitialised variable 'n'
Not a good day.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_sync.c b/tests/gem_sync.c index 7e79e49d..abb31679 100644 --- a/tests/gem_sync.c +++ b/tests/gem_sync.c @@ -456,7 +456,7 @@ store_many(int fd, unsigned ring, int timeout) const int gen = intel_gen(intel_get_drm_devid(fd)); unsigned long *shared; const char *names[16]; - int n; + int n = 0; shared = mmap(NULL, 4096, PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); igt_assert(shared != MAP_FAILED); |