+4
−3
Loading
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>