Calling a wrapped routine with an optional string array produces a segfault with numpy version >= 1.24.0 when called without the argument.
I belive the problems is that the C generated code trys to acces data from Py_None object.
This PR adds a check in the C generated code from f2py_f90wrap.py script.
It also add some related tests on various way to manipulate strings.
Calling a wrapped routine with an optional string array produces a segfault with numpy version >= 1.24.0 when called without the argument. I belive the problems is that the C generated code trys to acces data from Py_None object. This PR adds a check in the C generated code from f2py_f90wrap.py script. It also add some related tests on various way to manipulate strings.