mirror of
https://github.com/pocketpy/pocketpy
synced 2026-02-04 06:30:17 +00:00
Update module.cpp
This commit is contained in:
parent
68db88b501
commit
eaec4a2a1f
@ -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];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user