diff --git a/icemulti/icemulti.cc b/icemulti/icemulti.cc index 42b4dcb..5c5f24c 100644 --- a/icemulti/icemulti.cc +++ b/icemulti/icemulti.cc @@ -109,6 +109,9 @@ size_t Image::size() ifs.seekg (0, ifs.beg); if (ifs.fail()) error("can't seek on input image `%s': %s\n", filename, strerror(errno)); + + if (length == 0) + error("input image `%s' doesn't contain any data\n", filename); return length; }