Fix possible divide by zero.

Spotted by:	many

Sponsored by:	The FreeBSD Foundation