diff options
author | Brian Behlendorf <[email protected]> | 2019-12-16 16:03:31 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-12-18 17:25:57 -0800 |
commit | d16a207f2edd19ece593967e7e83b7e2217d04f9 (patch) | |
tree | 7269e6e424c9b059ae943de57230d491a96bad57 /module/zfs/vdev_initialize.c | |
parent | 487bddad67f5abf4f4d8020befd5792743ff8657 (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/vdev_initialize.c')
0 files changed, 0 insertions, 0 deletions