drivers/bmp180: fix potentially use of uninitialized variable
This was reported by scan-build
This commit is contained in:
parent
efbd758786
commit
679a07833b
@ -106,7 +106,7 @@ int bmp180_init(bmp180_t *dev, const bmp180_params_t *params)
|
||||
|
||||
int16_t bmp180_read_temperature(const bmp180_t *dev)
|
||||
{
|
||||
int32_t ut, b5;
|
||||
int32_t ut = 0, b5;
|
||||
/* Acquire exclusive access */
|
||||
i2c_acquire(DEV_I2C);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user