summaryrefslogtreecommitdiffstats
path: root/module/zfs/zle.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2019-12-16 16:03:31 -0800
committerBrian Behlendorf <[email protected]>2019-12-18 17:25:57 -0800
commitd16a207f2edd19ece593967e7e83b7e2217d04f9 (patch)
tree7269e6e424c9b059ae943de57230d491a96bad57 /module/zfs/zle.c
parent487bddad67f5abf4f4d8020befd5792743ff8657 (diff)
cppcheck: (warning) Possible null pointer dereference: nvh
Move the 'nvh = (void *)buf' assignment after the 'buf == NULL' check to resolve the warning. Interestingly, cppcheck 1.88 correctly determines that the existing code is safe, while cppcheck 1.86 reports the warning. Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #9732
Diffstat (limited to 'module/zfs/zle.c')
0 files changed, 0 insertions, 0 deletions