summaryrefslogtreecommitdiff
path: root/PluginCommandInterfaceDbus/src
diff options
context:
space:
mode:
authorchristian mueller <christian.ei.mueller@bmw.de>2012-05-03 14:40:20 +0200
committerchristian mueller <christian.ei.mueller@bmw.de>2012-05-24 13:40:22 +0200
commit6681a98594680fe6ab15abeeb0ea915c44d7ad6a (patch)
treeb1dbb1d46a5019963d4061fb4463032ef4deb09d /PluginCommandInterfaceDbus/src
parentbfafb8c4ded216a2cae6e376e69c9bc2dca117e6 (diff)
downloadaudiomanager-6681a98594680fe6ab15abeeb0ea915c44d7ad6a.tar.gz
* [GAM-74] resolving issues found by coverity scan
Signed-off-by: christian mueller <christian.ei.mueller@bmw.de>
Diffstat (limited to 'PluginCommandInterfaceDbus/src')
-rw-r--r--PluginCommandInterfaceDbus/src/CAmDbusMessageHandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/PluginCommandInterfaceDbus/src/CAmDbusMessageHandler.cpp b/PluginCommandInterfaceDbus/src/CAmDbusMessageHandler.cpp
index f84a994..94a0421 100644
--- a/PluginCommandInterfaceDbus/src/CAmDbusMessageHandler.cpp
+++ b/PluginCommandInterfaceDbus/src/CAmDbusMessageHandler.cpp
@@ -147,7 +147,7 @@ dbus_bool_t CAmDbusMessageHandler::getBool()
char CAmDbusMessageHandler::getByte()
{
- char param;
+ char param(0);
if (DBUS_TYPE_BYTE != dbus_message_iter_get_arg_type(&mDBusMessageIter))
{
@@ -165,7 +165,7 @@ char CAmDbusMessageHandler::getByte()
dbus_uint16_t CAmDbusMessageHandler::getUInt()
{
- dbus_uint16_t param;
+ dbus_uint16_t param(0);
#ifdef GLIB_DBUS_TYPES_TOLERANT
if (DBUS_TYPE_UINT16 != dbus_message_iter_get_arg_type(&mDBusMessageIter) && DBUS_TYPE_UINT32 != dbus_message_iter_get_arg_type(&mDBusMessageIter))
@@ -187,7 +187,7 @@ dbus_uint16_t CAmDbusMessageHandler::getUInt()
dbus_int16_t CAmDbusMessageHandler::getInt()
{
- dbus_int16_t param;
+ dbus_int16_t param(0);
#ifdef GLIB_DBUS_TYPES_TOLERANT
if (DBUS_TYPE_INT16 != dbus_message_iter_get_arg_type(&mDBusMessageIter) && DBUS_TYPE_INT32 != dbus_message_iter_get_arg_type(&mDBusMessageIter))
@@ -209,7 +209,7 @@ dbus_int16_t CAmDbusMessageHandler::getInt()
double CAmDbusMessageHandler::getDouble()
{
- double param;
+ double param(0);
if (DBUS_TYPE_DOUBLE != dbus_message_iter_get_arg_type(&mDBusMessageIter))
{
log(&commandDbus, DLT_LOG_ERROR, "DBusMessageHandler::getDouble DBUS handler argument is no double!");