153aa9179Sopenharmony_cidiff --git a/buf.c b/buf.c 253aa9179Sopenharmony_ciindex 40a5ee06..1fa975a6 100644 353aa9179Sopenharmony_ci--- a/buf.c 453aa9179Sopenharmony_ci+++ b/buf.c 553aa9179Sopenharmony_ci@@ -1265,7 +1265,7 @@ xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer) { 653aa9179Sopenharmony_ci */ 753aa9179Sopenharmony_ci int 853aa9179Sopenharmony_ci xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input) { 953aa9179Sopenharmony_ci- if ((input == NULL) || (buf == NULL) || (buf->error)) 1053aa9179Sopenharmony_ci+ if ((input == NULL) || (buf == NULL)) 1153aa9179Sopenharmony_ci return(-1); 1253aa9179Sopenharmony_ci CHECK_COMPAT(buf) 1353aa9179Sopenharmony_ci input->base = input->cur = buf->content;