net: shell: Fix parser error on net ping command
The strtol() function use errno to return error code.
However, it is not being initialized in the parser_arg()
function before calling the strtol(). Thus, hitting error
when performing net ping command with -c / -i parameters.
Signed-off-by:
Kweh Hock Leong <hock.leong.kweh@intel.com>
Loading
Please sign in to comment