Fix compile warning

This commit is contained in:
Denis Kenzior 2009-08-08 22:38:43 -05:00
parent b8addb4af3
commit 19858da361
1 changed files with 3 additions and 1 deletions

View File

@ -792,7 +792,9 @@ static gboolean sim_op_check_cached(struct ofono_modem *modem)
buffer = g_malloc(file_length);
if (TFR(read(fd, buffer, file_length)) < file_length)
len = TFR(read(fd, buffer, file_length));
if (len < (ssize_t)file_length)
goto cleanup;
for (record = 0; record < file_length / record_length; record++) {