diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-28 22:52:13 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-28 22:52:13 +0000 |
| commit | a112eeb4d052b1212f94e95efd83a215213da691 (patch) | |
| tree | cc023a901e0cbbd14e79a3ce084691fd9445c03a /src/lib/image_examiner.cc | |
| parent | a76f484d1e5c6c44c8d2e4938340e8559b2ef65a (diff) | |
Small fixes and tidy-ups spotted by cppcheck.
Diffstat (limited to 'src/lib/image_examiner.cc')
| -rw-r--r-- | src/lib/image_examiner.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc index 6212875b1..299f7f38d 100644 --- a/src/lib/image_examiner.cc +++ b/src/lib/image_examiner.cc @@ -47,11 +47,11 @@ ImageExaminer::ImageExaminer (shared_ptr<const Film> film, shared_ptr<const Imag boost::filesystem::path path = content->path(0).string (); if (valid_j2k_file (path)) { boost::uintmax_t size = boost::filesystem::file_size (path); - uint8_t* buffer = new uint8_t[size]; FILE* f = fopen_boost (path, "r"); if (!f) { throw FileError ("Could not open file for reading", path); } + uint8_t* buffer = new uint8_t[size]; fread (buffer, 1, size, f); fclose (f); try { |
