From eaec4a2a1fddcc8149cd22a9f0d3b5767c1543b0 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 5 Jan 2026 17:48:13 +0800 Subject: [PATCH] Update module.cpp --- include/pybind11/tests/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];