Skip to content

[mbed-os-5.15] Corrected nanostack coverity warnings #14147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EMACPhy : public NanostackEthernetPhy {
EMAC &emac;
uint8_t mac_addr[6];
int8_t device_id;
phy_device_driver_s phy;
phy_device_driver_s phy = {};
};

// GAH! no handles on the callback. Force a single interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class PPPPhy : public NanostackPPPPhy {
bool active;
bool powered_up;
int8_t device_id;
phy_device_driver_s phy;
phy_device_driver_s phy = {};
};

nsapi_error_t Nanostack::PPPInterface::initialize()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ uint32_t arm_random_seed_get(void)
uint32_t result = 0;
#ifdef MBEDTLS_ENTROPY_HARDWARE_ALT
#if defined(MBEDTLS_PLATFORM_C)
mbedtls_platform_setup(NULL);
int ret = mbedtls_platform_setup(NULL);
if (ret != 0) {
return result;
}
#endif /* MBEDTLS_PLATFORM_C */
/* Grab a seed from a function we provide for mbedtls */
size_t len;
Expand Down