]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
i2c(8): uninitialized variable (UNINIT).
authorpfg <pfg@FreeBSD.org>
Fri, 13 May 2016 15:57:55 +0000 (15:57 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 13 May 2016 15:57:55 +0000 (15:57 +0000)
commit0519015a5a069d3505e9eb60521d6dbb2444f653
tree73ff483f00af89f69a2c12025459746f7c05b2b1
parent572ca36439a440ceddddba015f85b84a01e63546
i2c(8): uninitialized variable (UNINIT).

If i2c_opt.width is somehow zero, buf will be left uninitialized and may
cause trouble later on. This is a followup to r299586.

CID: 1331548
usr.sbin/i2c/i2c.c