diff options
author | christian mueller <christian.ei.mueller@bmw.de> | 2012-05-03 14:40:20 +0200 |
---|---|---|
committer | christian mueller <christian.ei.mueller@bmw.de> | 2012-05-24 13:40:22 +0200 |
commit | 6681a98594680fe6ab15abeeb0ea915c44d7ad6a (patch) | |
tree | b1dbb1d46a5019963d4061fb4463032ef4deb09d /PluginRoutingInterfaceDbus/src | |
parent | bfafb8c4ded216a2cae6e376e69c9bc2dca117e6 (diff) | |
download | audiomanager-6681a98594680fe6ab15abeeb0ea915c44d7ad6a.tar.gz |
* [GAM-74] resolving issues found by coverity scan
Signed-off-by: christian mueller <christian.ei.mueller@bmw.de>
Diffstat (limited to 'PluginRoutingInterfaceDbus/src')
-rw-r--r-- | PluginRoutingInterfaceDbus/src/CAmDbusMessageHandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/PluginRoutingInterfaceDbus/src/CAmDbusMessageHandler.cpp b/PluginRoutingInterfaceDbus/src/CAmDbusMessageHandler.cpp index 65b77b6..e8c4826 100644 --- a/PluginRoutingInterfaceDbus/src/CAmDbusMessageHandler.cpp +++ b/PluginRoutingInterfaceDbus/src/CAmDbusMessageHandler.cpp @@ -161,7 +161,7 @@ dbus_bool_t CAmRoutingDbusMessageHandler::getBool() char CAmRoutingDbusMessageHandler::getByte(DBusMessageIter& iter, bool next) { - char param; + char param(0); if (DBUS_TYPE_BYTE != dbus_message_iter_get_arg_type(&iter)) { @@ -185,7 +185,7 @@ char CAmRoutingDbusMessageHandler::getByte() dbus_uint16_t CAmRoutingDbusMessageHandler::getUInt(DBusMessageIter& iter, bool next) { - dbus_uint16_t param; + dbus_uint16_t param(0); #ifdef GLIB_DBUS_TYPES_TOLERANT if (DBUS_TYPE_UINT16 != dbus_message_iter_get_arg_type(&iter) && DBUS_TYPE_UINT32 != dbus_message_iter_get_arg_type(&iter)) #else @@ -212,7 +212,7 @@ dbus_uint16_t CAmRoutingDbusMessageHandler::getUInt() dbus_int16_t CAmRoutingDbusMessageHandler::getInt(DBusMessageIter& iter, bool next) { - dbus_int16_t param; + dbus_int16_t param(0); #ifdef GLIB_DBUS_TYPES_TOLERANT if (DBUS_TYPE_INT16 != dbus_message_iter_get_arg_type(&iter) && DBUS_TYPE_INT32 != dbus_message_iter_get_arg_type(&iter)) #else @@ -239,7 +239,7 @@ dbus_int16_t CAmRoutingDbusMessageHandler::getInt() double CAmRoutingDbusMessageHandler::getDouble(DBusMessageIter& iter, bool next) { - double param; + double param(0); if (DBUS_TYPE_DOUBLE != dbus_message_iter_get_arg_type(&iter)) { log(&routingDbus, DLT_LOG_ERROR, "DBusMessageHandler::getDouble DBUS handler argument is no double!"); |