From bec0d71cc13f1dd6efd13cbcdfea429875a27411 Mon Sep 17 00:00:00 2001 From: Matthew Stickney Date: Thu, 16 Feb 2017 16:24:04 -0500 Subject: [PATCH] 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. --- src/msgpackstream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msgpackstream.cpp b/src/msgpackstream.cpp index aee0f59..1a35149 100644 --- a/src/msgpackstream.cpp +++ b/src/msgpackstream.cpp @@ -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) :