null pointer check before usage
libcsv is c89 afaik and this would add mixed declarations which won't work in some versions of Visual Studio. csv_fini should not be called with NULL. Whether it needs parameter checking I think you should take that question upstream.
Hello Jay, you are right. If a function is not expected to receive NULL. Then there is no check needed. But if you check for NULL, but use it before, then the compiler is free to optimize away unrelated code. Either check before usage or don't check. Please check example 2 on : https://blog.knatten.org/2011/11/04/undefined-behaviour-%E2%80%94-worse-than-its-reputation/
Thank you for your comment