Fix compiler warning due to unitialized variable
Fix comparison

The test was always false because it was comparing the value of
the constant (which is 0) rather than the equality between the
property and the constant.