Initialize the stream status to OK in the QIODevice constructor.

Without this, the status is an an uninitialize state, which causes the
precondition checks to fail on writes.
This commit is contained in:
Matthew Stickney
2017-02-16 16:24:04 -05:00
parent 9d017281fe
commit bec0d71cc1

View File

@ -28,7 +28,7 @@ MsgPackStream::MsgPackStream() :
{ }
MsgPackStream::MsgPackStream(QIODevice *d) :
dev(d), owndev(false)
dev(d), owndev(false), q_status(Ok)
{ }
MsgPackStream::MsgPackStream(QByteArray *a, QIODevice::OpenMode mode) :