mirror of
https://github.com/sist2app/sist2.git
synced 2026-01-23 02:44:28 +00:00
empty docx bugfix
This commit is contained in:
@@ -28,6 +28,10 @@ int should_read_part(opcPart part) {
|
|||||||
|
|
||||||
char *part_name = (char *) part;
|
char *part_name = (char *) part;
|
||||||
|
|
||||||
|
if (part == NULL) {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if ( // Word
|
if ( // Word
|
||||||
strcmp(part_name, "word/document.xml") == 0
|
strcmp(part_name, "word/document.xml") == 0
|
||||||
|| strncmp(part_name, "word/footer", sizeof("word/footer") - 1) == 0
|
|| strncmp(part_name, "word/footer", sizeof("word/footer") - 1) == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user