errno should be initialized to 0 before calling strtol
Fixes:
f6cefe253cc8 ("app/crypto-perf: add range/list of sizes")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Reviewed-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
if (copy_arg == NULL)
return -1;
if (copy_arg == NULL)
return -1;
token = strtok(copy_arg, ":");
/* Parse minimum value */
token = strtok(copy_arg, ":");
/* Parse minimum value */
if (copy_arg == NULL)
return -1;
if (copy_arg == NULL)
return -1;
token = strtok(copy_arg, ",");
/* Parse first value */
token = strtok(copy_arg, ",");
/* Parse first value */