Database file should not be 0 after db creation
Change-Id: I93803f853ffd6b3afed3b18010cc556da7eb3417
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Name: ua-manager
Summary: User awareness manager
-Version: 0.13.16
+Version: 0.13.17
Release: 1
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
/* check table existance*/
retv_if(UAM_ERROR_NONE != __uam_db_check_table_creation(), UAM_ERROR_DB_FAILED);
/* check db size */
- _uam_get_file_size(DATABASE_FULL_PATH);
+ retv_if(0 >= _uam_get_file_size(DATABASE_FULL_PATH), UAM_ERROR_DB_FAILED);
/* check db integrity */
retv_if(UAM_ERROR_NONE != __uam_db_check_integrity(), UAM_ERROR_DB_FAILED);
/* set locking mode */