Commit 6912e06d authored by Adam Reichold's avatar Adam Reichold

Check for stream before calling stream methods when saving an embedded file.

Closes #659
parent 6ced3253
Pipeline #7738 passed with stage
in 15 minutes and 26 seconds
......@@ -93,6 +93,9 @@ bool EmbFile::save(const char *path) {
bool EmbFile::save2(FILE *f) {
int c;
if (unlikely(!m_objStr.isStream()))
return false;
while ((c = m_objStr.streamGetChar()) != EOF) {
fputc(c, f);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment