Browse Source
Address cppcheck warnings by checking fopen() results before using the returned file handles and reporting the underlying error on failure. This prevents null file handles from being passed to fprintf() and fclose(), avoiding a potential crash when test output files cannot be created. Explicitly convert RRC filter coefficients to double for fprintf() to match the %f format specifier. Signed-off-by: Robin Getz <rgetz503@gmail.com>chirpmodem-v8.0.0
2 changed files with 27 additions and 2 deletions
Loading…
Reference in new issue