Only seeing this warning with GCC - haven't observed this with
Clang or Coverity scans.
host/libraries/libbladeRF/src/device_identifier.c:121:22: error: ‘val’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
value[i] = tolower((unsigned char) c);
^
host/libraries/libbladeRF/src/device_identifier.c:175:34: note: ‘val’ was declared here
char *dev_id, *token, *arg, *val, *saveptr;
^
Addressing this by initializing ptrs to NULL and status variables to
BLADERF_ERR_UNEXPECTED. Added NULL pointer checks.
|
||
|---|---|---|
| .. | ||
| libbladeRF | ||
| libbladeRF_bindings/matlab | ||
| libbladeRF_test | ||
| CMakeLists.txt | ||