zfs/module/nvpair
Brian Behlendorf d16a207f2e 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 <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9732
2019-12-18 17:25:57 -08:00
..
Makefile.in Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
fnvpair.c Add new fnvlist_lookup_* functions 2018-10-03 15:30:55 -07:00
nvpair.c cppcheck: (warning) Possible null pointer dereference: nvh 2019-12-18 17:25:57 -08:00
nvpair_alloc_fixed.c Update build system and packaging 2018-05-29 16:00:33 -07:00
nvpair_alloc_spl.c Linux 4.14 compat: CONFIG_GCC_PLUGIN_RANDSTRUCT 2017-11-28 17:33:48 -06:00