From 0302fd3384eb53606ac784d3c2f041e5ac8f21a2 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 6 Mar 2013 14:06:59 +0100 Subject: Fix warning about uninitialized variable (CLANG). Change-Id: I7fd31373b4d08130c1fb44bb5b203331313558c3 Reviewed-by: Kai Koehne --- src/declarative/debugger/qdeclarativeenginedebugservice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/declarative') diff --git a/src/declarative/debugger/qdeclarativeenginedebugservice.cpp b/src/declarative/debugger/qdeclarativeenginedebugservice.cpp index d97349ed..5ee064a2 100644 --- a/src/declarative/debugger/qdeclarativeenginedebugservice.cpp +++ b/src/declarative/debugger/qdeclarativeenginedebugservice.cpp @@ -518,7 +518,7 @@ void QDeclarativeEngineDebugService::messageReceived(const QByteArray &message) QVariant expr; bool isLiteralValue; QString filename; - int line; + int line = 0; ds >> objectId >> propertyName >> expr >> isLiteralValue; if (!ds.atEnd()) { // backward compatibility from 2.1, 2.2 ds >> filename >> line; -- cgit v1.2.1