diff options
Diffstat (limited to 'chrome/browser/visitedlink/visitedlink_master.cc')
-rw-r--r-- | chrome/browser/visitedlink/visitedlink_master.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/visitedlink/visitedlink_master.cc b/chrome/browser/visitedlink/visitedlink_master.cc index e4b8444..0c7b923 100644 --- a/chrome/browser/visitedlink/visitedlink_master.cc +++ b/chrome/browser/visitedlink/visitedlink_master.cc @@ -950,7 +950,8 @@ bool VisitedLinkMaster::ReadFromFile(FILE* file, DCHECK(!posted_asynchronous_operation_); #endif - fseek(file, offset, SEEK_SET); + if (fseek(file, offset, SEEK_SET) != 0) + return false; size_t num_read = fread(data, 1, data_size, file); return num_read == data_size; |