Skip to content

Commit 1dc5060

Browse files
committed
Small fix to input compression detection
1 parent 10dfc50 commit 1dc5060

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/xml6_error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
#include <libxml/xmlerror.h>
66

77
DLLEXPORT xmlChar*
8-
xml6_error_context_and_column( xmlErrorPtr, unsigned int*);
8+
xml6_error_context_and_column(xmlErrorPtr, unsigned int*);
99

1010
#endif /* __XML6_ERROR_H */

src/xml6_parser_ctx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ xml6_parser_ctx_close(xmlParserCtxtPtr self) {
8181
xmlParserInputPtr input = self->inputTab[i];
8282
xmlParserInputBufferPtr buf = input->buf;
8383
if (buf != NULL) {
84-
if (buf->compressed != 0) {
84+
if (buf->compressed > 0) {
8585
compressed = 1;
8686
}
8787
xmlFreeParserInputBuffer(buf);

0 commit comments

Comments
 (0)