lib/blob: fix uninitialized variable for non-debug builds
This was observed after running nighly tests on previous patch. As part of it, autopackage.sh compiles SPDK without debug flag set. Exposing the uninitialized var here. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Iedb1641f3c0d4a21f293c81cd4fcf35c6d1c7ae5 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/482893 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com>
This commit is contained in:
parent
12d1404125
commit
bba0f040cf
@ -137,7 +137,7 @@ static int
|
||||
_spdk_bs_allocate_cluster(struct spdk_blob *blob, uint32_t cluster_num,
|
||||
uint64_t *lowest_free_cluster, uint32_t *lowest_free_md_page, bool update_map)
|
||||
{
|
||||
uint32_t *extent_page;
|
||||
uint32_t *extent_page = 0;
|
||||
|
||||
pthread_mutex_lock(&blob->bs->used_clusters_mutex);
|
||||
*lowest_free_cluster = spdk_bit_array_find_first_clear(blob->bs->used_clusters,
|
||||
|
Loading…
Reference in New Issue
Block a user