Skip to content

Commit

Permalink
icemulti: Refuse to pack empty image
Browse files Browse the repository at this point in the history
  • Loading branch information
rlutz committed Sep 4, 2017
1 parent e9e49bb commit ca90cc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions icemulti/icemulti.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ca90cc7

Please sign in to comment.