Ensure decoder has an error string.
We use that error buffer to check for errors. PiperOrigin-RevId: 889193796 Change-Id: I1f7575321a57301b4ae5002d0c488bbb16a30b26
This commit is contained in:
committed by
Copybara-Service
parent
f5d3ce3451
commit
4df2fc2490
@@ -206,8 +206,9 @@ mjPLUGIN_LIB_INIT {
|
|||||||
if (size <= 0) {
|
if (size <= 0) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
char error[1024];
|
||||||
return ParseZipBuffer(buffer, size, resource->name, const_cast<mjVFS*>(vfs),
|
return ParseZipBuffer(buffer, size, resource->name, const_cast<mjVFS*>(vfs),
|
||||||
nullptr, 0);
|
error, sizeof(error));
|
||||||
};
|
};
|
||||||
mjp_registerDecoder(&decoder);
|
mjp_registerDecoder(&decoder);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user