Fix svace issues 77/90277/1 accepted/tizen/3.0/ivi/20161011.065234 accepted/tizen/3.0/mobile/20161015.034225 accepted/tizen/3.0/tv/20161016.005839 accepted/tizen/3.0/wearable/20161015.084115 accepted/tizen/common/20160929.163828 accepted/tizen/ivi/20160929.235438 accepted/tizen/mobile/20160929.235355 accepted/tizen/tv/20160929.235408 accepted/tizen/wearable/20160929.235426 submit/tizen/20160929.103934 submit/tizen_3.0_ivi/20161010.000007 submit/tizen_3.0_mobile/20161015.000006 submit/tizen_3.0_tv/20161015.000005 submit/tizen_3.0_wearable/20161015.000005
authorstom.hwang <stom.hwang@samsung.com>
Thu, 29 Sep 2016 08:39:30 +0000 (17:39 +0900)
committerstom.hwang <stom.hwang@samsung.com>
Thu, 29 Sep 2016 08:39:30 +0000 (17:39 +0900)
Change-Id: I9afe4cefa9b7825f1e721f7b3d1f342db4746bf6
Signed-off-by: stom.hwang <stom.hwang@samsung.com>
engine-parser/src/stt-engine-parser.c [changed mode: 0644->0755]
server/sttd_recorder.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c1de50a..52a89dd
@@ -129,7 +129,9 @@ static int __remove_engine_info_xml(const char *pkgid)
        snprintf(path, 256, "%s/%s.xml", STT_ENGINE_INFO, pkgid);
        if (0 == access(path, F_OK)) {
                LOGD("Remove engine info xml(%s)", path);
-               remove(path);
+               if (0 != remove(path)) {
+                       LOGE("[ERROR] Fail to emove engine info xml(%s)", path);
+               }
        }
        LOGD("===");
        return 0;
old mode 100644 (file)
new mode 100755 (executable)
index 5c4687b..387308c
@@ -438,7 +438,7 @@ static float get_volume_decibel(char* data, int size, stte_audio_type_e type)
        if (0 == count)
                rms = 0.0;
        else
-               rms = sqrt(square_sum/count);
+               rms = sqrt((double)square_sum/count);
 
        if (depthByte == 2)
                db = 20 * log10(rms/MAX_AMPLITUDE_MEAN_16);