mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Fix uninit variable in slab reclaim test
Gcc version 4.7.0 reports the delta.tv_sec in the slab reclaim test as potentially unitialized. In practice this will never occur but to keep gcc happy we initialize the variable to zero. Signed-off-by: Brian Behlendorf <behlendo@fedora-17-amd64.(none)>
This commit is contained in:
parent
2371321e8a
commit
eaac9ba510
@ -1135,7 +1135,7 @@ splat_kmem_test13(struct file *file, void *arg)
|
||||
kmem_cache_data_t *kcd;
|
||||
dummy_page_t *dp;
|
||||
struct list_head list;
|
||||
struct timespec start, delta;
|
||||
struct timespec start, delta = { 0, 0 };
|
||||
int size, count, slabs, fails = 0;
|
||||
int i, rc = 0, max_time = 10;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user