[PATCH] Coverity defect 1135443

From: Kinkie <gkinkie_at_gmail.com>
Date: Thu, 9 Jan 2014 09:57:25 +0100

Hi,
  Coverity detected a possible division by zero in
src/format/Format.cc line 500, on a Token->divisor.
The defect is a false positive as that value is correctly initialized,
but it could be a chance to document as a class invariant that that
value must not be zero, and initialize it to 1 in the default
constructor.
Attached patch does just that.

-- 
    /kinkie

Received on Thu Jan 09 2014 - 08:57:33 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 10 2014 - 12:00:12 MST