fix crash for vibration feature
authorSeongjun Yim <se201.yim@samsung.com>
Sun, 14 Apr 2013 08:54:49 +0000 (17:54 +0900)
committerSeongjun Yim <se201.yim@samsung.com>
Sun, 14 Apr 2013 08:54:49 +0000 (17:54 +0900)
Change-Id: If26cfe88b29bea895c45495cab82eca4069dd28c
Signed-off-by: Seongjun Yim <se201.yim@samsung.com>
src/controls/FWebCtrl_WebImpl.cpp

index bd18e20..fa6932f 100755 (executable)
@@ -4240,11 +4240,9 @@ _WebImpl::VibrationRequested(uint64_t duration)
 
        __pVibrator = std::move(pVibrator);
 
-       IntensityDurationVibrationPattern pattern;
-       pattern.duration = static_cast< int >(duration);
-       pattern.intensity = -1;
+       IntensityDurationVibrationPattern pattern = {static_cast< int >(duration), -1};
 
-       r = pVibrator->Start(&pattern, 1, 1);
+       r = __pVibrator->Start(&pattern, 1, 1);
        SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
 
        return E_SUCCESS;