diff --git a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp index 1a19048bbe7..3fc91e4f594 100644 --- a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp +++ b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp @@ -261,7 +261,7 @@ void tst_QGlobal::qtry() void tst_QGlobal::checkptr() { - int i; + int i = 0; QCOMPARE(q_check_ptr(&i), &i); const char *c = "hello";