File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
nanostack-hal-mbed-cmsis-rtos Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class EMACPhy : public NanostackEthernetPhy {
27
27
EMAC &emac;
28
28
uint8_t mac_addr[6 ];
29
29
int8_t device_id;
30
- phy_device_driver_s phy;
30
+ phy_device_driver_s phy = {} ;
31
31
};
32
32
33
33
// GAH! no handles on the callback. Force a single interface
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class PPPPhy : public NanostackPPPPhy {
52
52
bool active;
53
53
bool powered_up;
54
54
int8_t device_id;
55
- phy_device_driver_s phy;
55
+ phy_device_driver_s phy = {} ;
56
56
};
57
57
58
58
nsapi_error_t Nanostack::PPPInterface::initialize ()
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ uint32_t arm_random_seed_get(void)
34
34
uint32_t result = 0 ;
35
35
#ifdef MBEDTLS_ENTROPY_HARDWARE_ALT
36
36
#if defined(MBEDTLS_PLATFORM_C )
37
- mbedtls_platform_setup (NULL );
37
+ int ret = mbedtls_platform_setup (NULL );
38
+ if (ret != 0 ) {
39
+ return result ;
40
+ }
38
41
#endif /* MBEDTLS_PLATFORM_C */
39
42
/* Grab a seed from a function we provide for mbedtls */
40
43
size_t len ;
You can’t perform that action at this time.
0 commit comments