Skip to content

Commit

Permalink
Initialize the stream status to OK in the QIODevice constructor.
Browse files Browse the repository at this point in the history
Without this, the status is an an uninitialize state, which causes the
precondition checks to fail on writes.
  • Loading branch information
mtstickney committed Feb 16, 2017
1 parent 9d01728 commit bec0d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msgpackstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) :
Expand Down

0 comments on commit bec0d71

Please sign in to comment.