blueloveTH преди 1 месец
родител
ревизия
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];