Added missing function call 94/32494/1
authorAnkur <ankur29.garg@samsung.com>
Thu, 18 Dec 2014 14:14:49 +0000 (19:44 +0530)
committerAnkur <ankur29.garg@samsung.com>
Thu, 18 Dec 2014 14:15:04 +0000 (19:45 +0530)
- Missing Function call to sf_stop() in one of the test cases - linear_acceleration.c
- Also, it was leading to a warning about use before intialization warning.

Change-Id: Ic0df7b6334945ac62048fee9ddcdb32fdf0fcba9

test/src/linear_acceleration.c

index 5e157e5..e45f4cc 100755 (executable)
@@ -94,6 +94,8 @@ int main(int argc,char **argv)
 
        sf_unregister_event(handle, event);
 
+       stop_handle = sf_stop(handle);
+
        if (stop_handle < 0) {
                printf("Error\n\n");
                return -1;