From 25abe2aafd5d6ac845c4fecd111519135a135726 Mon Sep 17 00:00:00 2001 From: SteveGilvarry Date: Thu, 7 Apr 2016 00:24:38 +1000 Subject: [PATCH] Fix score variable --- src/zm_monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index af0f621d4..e777d62e1 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -3551,7 +3551,7 @@ unsigned int Monitor::DetectBlack(const Image &comp_image, Event::StringSet &zon unsigned int Monitor::DetectMotion( const Image &comp_image, Event::StringSet &zoneSet, unsigned int &score ) { bool alarm = false; - unsigned int score = 0; + score = 0; if ( n_zones <= 0 ) return( alarm );