[Fix coverity issue]

[Description]
Fix coverity issue to align the original logic to check the return
 value of strtol/strtoul.

[Release-log]

1 file changed
tree: 4acdc4ebc7c624bb6c3672ccb729428a52859d62
  1. src/