Fix some svace issues 06/53106/1
authorhyunuktak <hyunuk.tak@samsung.com>
Wed, 2 Dec 2015 01:48:34 +0000 (10:48 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Wed, 2 Dec 2015 01:49:11 +0000 (10:49 +0900)
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Change-Id: I8cabe0b8ad3076caa595ec016c4873503d5235ea

packaging/capi-network-connection.spec
src/connection.c
src/connection_profile.c
src/libnetwork.c

index 68b3c6e..5c94722 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-connection
 Summary:       Network Connection library in TIZEN C API
-Version:       1.0.74
+Version:       1.0.75
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index ce5421c..304deca 100755 (executable)
@@ -1198,7 +1198,7 @@ static int __get_cellular_statistic(connection_statistics_type_e statistics_type
                return CONNECTION_ERROR_OPERATION_FAILED;
        }
 
-       *llsize = (long long)(last_size * 1000 + size * 1000);
+       *llsize = (long long)(last_size * 1000) + (long long)(size * 1000);
        CONNECTION_LOG(CONNECTION_INFO,"%lld bytes", *llsize);
 
        return CONNECTION_ERROR_NONE;
index 3005b69..188c947 100755 (executable)
@@ -448,8 +448,6 @@ EXPORT_API int connection_profile_get_state(connection_profile_h profile, connec
 
        net_profile_info_t *profile_info = profile;
        *state = _profile_convert_to_cp_state(profile_info->ProfileState);
-       if (*state < 0)
-                       return CONNECTION_ERROR_OPERATION_FAILED;
 
        return CONNECTION_ERROR_NONE;
 }
index cda1205..daf7bff 100755 (executable)
@@ -1563,10 +1563,11 @@ int _connection_check_feature_supported(const char *feature_name, ...)
        if (!feature_supported) {
                CONNECTION_LOG(CONNECTION_ERROR, "Error - Feature is not supported");
                set_last_result(CONNECTION_ERROR_NOT_SUPPORTED);
+               va_end(list);
                return CONNECTION_ERROR_NOT_SUPPORTED;
        }
-       va_end(list);
 
+       va_end(list);
        set_last_result(CONNECTION_ERROR_NONE);
        return CONNECTION_ERROR_NONE;
 }