Skip to content

Commit

Permalink
drivers/bmp180: fix potentially use of uninitialized variable
Browse files Browse the repository at this point in the history
This was reported by scan-build
  • Loading branch information
aabadie committed Oct 22, 2019
1 parent efbd758 commit 679a078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bmp180/bmp180.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 679a078

Please # to comment.