mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
drivers/sensors/apds9960.c: Initial state of allocated structure was not being set. Noted by Leif Jacob.
This commit is contained in:
@@ -1177,7 +1177,7 @@ int ft5x06_register(FAR struct i2c_master_s *i2c,
|
||||
priv = (FAR struct ft5x06_dev_s *)kmm_zalloc(sizeof(struct ft5x06_dev_s));
|
||||
if (!priv)
|
||||
{
|
||||
ierr("ERROR: kmm_malloc(%d) failed\n", sizeof(struct ft5x06_dev_s));
|
||||
ierr("ERROR: kmm_zalloc(%d) failed\n", sizeof(struct ft5x06_dev_s));
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user