HomeClusterLabs Projects

Low: ldirectord: Fix unset failcount error

Description

Low: ldirectord: Fix unset failcount error

This error was noticed in the logs:

Use of uninitialized value in numeric gt (>)

The uninitialized use comes from the "_service_up" function
which tries to read an uninitialized array element "failcount"
which get only written (set > 0) in the "_service_down" function.

This patch sets failcount to 0 in the constructor to avoid
triggering the error.

Details

Provenance
Kristoffer Grönlund <krig@koru.se>Authored on Jan 22 2016, 8:34 AM
Parents
rRd2dfd1bee744: Merge pull request #743 from oalbrigt/3.9.7-rc1
Branches
Unknown
Tags
Unknown

Event Timeline