mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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 |
||
|---|---|---|
| .. | ||
| fnvpair.c | ||
| Makefile.in | ||
| nvpair.c | ||
| nvpair_alloc_fixed.c | ||
| nvpair_alloc_spl.c | ||