ab3a465554
The way this is written currently, there is a (very very unlikely) chance that the first strdup fails and the second one succeeds. Just clean that up. Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: I5ca1106c713753448a2bf988166a2d79ab9fa86d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3610 Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: GangCao <gang.cao@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
bdev_internal.h | ||
bdev_rpc.c | ||
bdev_zone.c | ||
bdev.c | ||
Makefile | ||
part.c | ||
scsi_nvme.c | ||
spdk_bdev.map | ||
vtune.c |