diff --git a/src/plugins/projectexplorer/userfileaccessor.cpp b/src/plugins/projectexplorer/userfileaccessor.cpp
index e9feb7e784d42277f8aba5e2ae20a197ed242536..948780e82b63b45c79d125565f7b90bce3e786aa 100644
--- a/src/plugins/projectexplorer/userfileaccessor.cpp
+++ b/src/plugins/projectexplorer/userfileaccessor.cpp
@@ -1034,7 +1034,7 @@ QVariantMap Version3Handler::update(Project *, const QVariantMap &map)
         // first iteration: search run configurations, get signing info, remove old signing keys
         QString customKeyPath;
         QString customSignaturePath;
-        int signingMode;
+        int signingMode = 0; // SelfSign
         QMapIterator<QString, QVariant> targetIt(originalTarget);
         while (targetIt.hasNext()) {
             targetIt.next();