FFIG / ffig

Generate code to call C++ libraries from other languages
MIT License
29 stars 9 forks source link

CGo function pointers should be initialised to NULL #393

Closed ajbennieston closed 6 years ago

ajbennieston commented 6 years ago

In the CGo bindings, we create a set of static pointers to functions, which are initialised to the result of a dlsym call for the appropriate symbol name.

The _create (constructor) functions are initialised to NULL, but the regular member functions are not. They should be NULL-initialised.