]> Some of my projects - localmylist.git/commitdiff
Clang analyzer fixes.
authorAPTX <marek321@gmail.com>
Thu, 30 May 2013 00:17:39 +0000 (02:17 +0200)
committerAPTX <marek321@gmail.com>
Thu, 30 May 2013 00:17:39 +0000 (02:17 +0200)
localmylist-management/qtsingleapplication/qtlocalpeer.cpp
localmylist/mylistmodel.cpp

index 08ecaea5b52af91fd69e8f93d98ec3617755be96..298c4d5ed99b83fbf5c2cab338639ca1b02bfac2 100644 (file)
@@ -179,7 +179,7 @@ void QtLocalPeer::receiveConnection()
                socket->waitForReadyRead();
        QDataStream ds(socket);
        QByteArray uMsg;
-       quint32 remaining;
+       quint32 remaining = 0;
        ds >> remaining;
        uMsg.resize(remaining);
        int got = 0;
index b2a58b5c59347dc3d98f0e1d35697307ba523b03..16d274e700aea5e78c4f131b2c364d902c0a466c 100644 (file)
@@ -467,6 +467,8 @@ void MyListModel::fetchFinished(MyListNode *node, int newrows)
        if (!newrows)
                return;
 
+       Q_ASSERT(node);
+
        const QModelIndex parent = index(node);