drivers/sensors/apds9960.c: Initial state of allocated structure was not being set. Noted by Leif Jacob.

This commit is contained in:
Gregory Nutt
2019-05-06 09:09:19 -06:00
parent 40be068528
commit 49b2b74105
3 changed files with 3 additions and 15 deletions
+1 -1
View File
@@ -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;
}