mirror of
				https://github.com/simon987/sist2.git
				synced 2025-11-03 17:26:52 +00:00 
			
		
		
		
	empty docx bugfix
This commit is contained in:
		
							parent
							
								
									8451109ecd
								
							
						
					
					
						commit
						80fbcb2a01
					
				@ -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
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user