Fix defects detected by static analysis tool 71/223371/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Wed, 29 Jan 2020 06:34:30 +0000 (15:34 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Wed, 29 Jan 2020 06:34:30 +0000 (15:34 +0900)
Change-Id: I2258604403825497383a5eb42036c66a2c9d03f3

scl/utils/linux/sclutils-linux.cpp

index dae4998..e93690c 100644 (file)
@@ -263,7 +263,7 @@ CSCLUtilsImplLinux::play_sound(const sclchar* snd_style) {
     static const sclint SOUND_TYPES_NUM = (sizeof(internal_types) / sizeof(SOUND_TYPES));
 
     sclboolean ret = FALSE;
-    int r;
+    int r = FEEDBACK_ERROR_NONE;
 
     sclboolean found = FALSE;
     sclint loop = 0;
@@ -301,7 +301,7 @@ CSCLUtilsImplLinux::play_vibration(const sclchar* vibe_style, const scllong dura
     static const sclint VIBRATION_TYPES_NUM = (sizeof(internal_types) / sizeof(VIBRATION_TYPES));
 
     sclboolean ret = FALSE;
-    int r;
+    int r = FEEDBACK_ERROR_NONE;
 
     sclboolean found = FALSE;
     sclint loop = 0;