diff --git a/include/pybind11/tests/module.cpp b/include/pybind11/tests/module.cpp index feaf8aa1..c8f64bfa 100644 --- a/include/pybind11/tests/module.cpp +++ b/include/pybind11/tests/module.cpp @@ -95,7 +95,7 @@ struct import_callback { }; static char* importfile(const char* path) { - if(value.empty()) return _importfile(path); + if(value.empty()) return _importfile(path, NULL); // +1 for the null terminator char* cstr = new char[value.size() + 1];