]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r314189,r314190,r314191:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 12 Mar 2017 04:53:27 +0000 (04:53 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 12 Mar 2017 04:53:27 +0000 (04:53 +0000)
commitaf1f0b2741a542f4cd27dd8c8912a15d7048f50f
tree1dcd786e80cb534a7647559f6c75d5d5a1f3f3f3
parent41021871f8c1a3e5b8c9c0782f5f276c2aaf2c41
MFC r314189,r314190,r314191:

r314189:

Fix up NULL/'\0' uses and fix 2 derefs after NULL

CID: 10188981018899

r314190:

Fix some minor style nits: put parentheses around return values

r314191:

Fix up r314189

The conditional in do_buff_decode(..) after the while loop was accidentally
inverted. Only increment the pointer for fmt if it's not NUL.

git-svn-id: svn://svn.freebsd.org/base/stable/10@315122 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libcam/scsi_cmdparse.c