Update module.cpp

This commit is contained in:
blueloveTH 2026-01-05 17:48:13 +08:00
parent 68db88b501
commit eaec4a2a1f

View File

@ -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];