summaryrefslogtreecommitdiffstats
path: root/contrib/diff/src/cmp.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-06-10 17:57:50 +0000
committerngie <ngie@FreeBSD.org>2016-06-10 17:57:50 +0000
commitea6cfdfcf90bbd6d13e10ff2f6e33eb24b865a01 (patch)
tree4132ac95ffb33f991f8dbc154ef76dfff65fc8ca /contrib/diff/src/cmp.c
parentdd9aa995f43dc0e3b57057856c8d4e6a82fa2128 (diff)
downloadFreeBSD-src-ea6cfdfcf90bbd6d13e10ff2f6e33eb24b865a01.zip
FreeBSD-src-ea6cfdfcf90bbd6d13e10ff2f6e33eb24b865a01.tar.gz
MFC r300836:
Quell false positives in svc_vc_create and svc_vc_create_conn with cd and xprt Both cd and xprt will be non-NULL after their respective malloc(9) wrappers are called (mem_alloc and svc_xprt_alloc, which calls mem_alloc) as mem_alloc always gets called with M_WAITOK|M_ZERO today. Thus, testing for them being non-NULL is incorrect -- it misleads Coverity and it misleads the reader. Remove some unnecessary NULL initializations as a follow up to help solidify the fact that these pointers will be initialized properly in sys/rpc/.. with the interfaces the way they are currently. CID: 1007338, 1007339, 1007340
Diffstat (limited to 'contrib/diff/src/cmp.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud