[Common] Fixed initialization of non-static members 21/242121/1 accepted/tizen/unified/20200826.133110 submit/tizen/20200825.050155
authorPiotr Kosko <p.kosko@samsung.com>
Mon, 24 Aug 2020 08:23:29 +0000 (10:23 +0200)
committerPiotr Kosko <p.kosko@samsung.com>
Mon, 24 Aug 2020 08:23:33 +0000 (10:23 +0200)
Related Coverity issue: 1146371

[Verification] Code compiles without errors.

Change-Id: I91da0bcdc083b83caa08ff69d9a9e31244aa1e0e

src/common/GDBus/connection.cpp

index 55e64d1a19d213ed387940560f40adea9be3f6e0..f723c77b272f0a48a7ad3bfcda23115dbdedf3e9 100644 (file)
@@ -32,7 +32,7 @@ GDBusConnection* Connection::getDBus() {
   return m_dbus;
 }
 
-Connection::Connection() {
+Connection::Connection() : m_dbus(nullptr), m_error(nullptr) {
   ScopeLogger();
   m_dbus = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &m_error);
   if (!m_dbus || m_error) {