identd: Avoid a maybe-uninitialized warning
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Sat, 19 May 2018 10:42:48 +0000 (12:42 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 18 Jun 2018 19:25:50 +0000 (21:25 +0200)
src/core/identserver.cpp

index 13b32fa..1f66840 100644 (file)
@@ -110,7 +110,7 @@ void IdentServer::respond() {
 
     bool success = false;
 
-    quint16 localPort;
+    quint16 localPort = 0;
     if (!split.empty()) {
         localPort = split[0].trimmed().toUShort(&success, 10);
     }