The size of unsigned long long is not the same with int's size.
But it has copied int value to unsigned long long value.
It makes wrong copy operation.
Change-Id: Ief253146585ffc7474f9bd623c4680c8d516ede5
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
{
storage_state_e state;
struct statvfs s;
- int ret, t, a;
+ int ret;
+ unsigned long long t = 0, a = 0;
state = sdcard_get_state();
- if (state < STORAGE_STATE_MOUNTED) {
- t = 0;
- a = 0;
- } else { /* if sdcard is mounted */
+ if (state >= STORAGE_STATE_MOUNTED) {
#ifndef __USE_FILE_OFFSET64
ret = storage_get_external_memory_size(&s);
#else