Fix a possible 'Division by zero'
authorMarco Costalba <mcostalba@gmail.com>
Sat, 26 May 2012 22:14:37 +0000 (23:14 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 26 May 2012 22:17:22 +0000 (23:17 +0100)
commit61a054b17002a167a09ce09eb9a7d820d792c680
tree3a7de8ca1b0630d62c87a64ed0532077f5e08be9
parent3361ad42420e578362dcafb94b639738609bf7d7
Fix a possible 'Division by zero'

In case a book entry has 'count' field set to 0
we crash. Spotted by Clang's static analyzer.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/book.cpp