userspace/wrsw_hal: fix reading dotconfig
Null is returned when there is unsuccessful read from dotconfig
(function libwr_cfg_get). Function atoi rely on valid string passed as
parameter. If dotconfig parameter does not exist, atoi will crash wrsw_hal.
Added checking whether valid string is returned from libwr_cfg_get.
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
Showing
Please
register
or
sign in
to comment