]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r298450:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 May 2016 00:34:45 +0000 (00:34 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 May 2016 00:34:45 +0000 (00:34 +0000)
commit18a2653cf10be3dc93b5b3284a1459c90a200d51
treefaecbe2f95458b92c2b537102487d4a0fa4982d2
parente2c19267ca4601e3be4a6a5293d15db319848788
MFC r298450:

Simplify always evaluated branch (`e != NULL`)

- xalloc(..) ensures that e will be non-null via malloc + err.
- `e` is already dereferenced above, so logically it's impossible
  to hit the lower test without crashing if it was indeed NULL.

CID: 1007408

git-svn-id: svn://svn.freebsd.org/base/stable/10@299022 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/bsnmp/gensnmptree/gensnmptree.c