blueloveTH 2 месяцев назад
Родитель
Сommit
eaec4a2a1f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/pybind11/tests/module.cpp

+ 1 - 1
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];