nvmf/rpc: ze-out name array in old format
JSON library will try to free any non-NULL string pointers so this array need to be initialized. Change-Id: Id352cc562cae4d4d11de3dcfca6115d6d0948ddc Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/414857 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
9380f06bdc
commit
3b0759d955
@ -486,7 +486,7 @@ static int
|
||||
decode_rpc_namespaces(const struct spdk_json_val *val, void *out)
|
||||
{
|
||||
struct rpc_namespaces *namespaces = out;
|
||||
char *names[RPC_MAX_NAMESPACES]; /* old format - array of strings (bdev names) */
|
||||
char *names[RPC_MAX_NAMESPACES] = {0}; /* old format - array of strings (bdev names) */
|
||||
size_t i;
|
||||
int rc;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user