2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-09-22 18:19:08 +00:00

Fix setLineBuf for bsd (fixes #177)

Use 0 instead of NULL in a cast.
This commit is contained in:
Jay Berkenbilt 2018-02-04 13:52:44 -05:00
parent d5bfd49cb2
commit 3b2a3cdd77

View File

@ -354,7 +354,7 @@ void
QUtil::setLineBuf(FILE* f) QUtil::setLineBuf(FILE* f)
{ {
#ifndef _WIN32 #ifndef _WIN32
setvbuf(f, reinterpret_cast<char *>(NULL), _IOLBF, 0); setvbuf(f, reinterpret_cast<char *>(0), _IOLBF, 0);
#endif #endif
} }