From: <ai...@us...> - 2011-10-11 04:07:12
|
Revision: 11949 http://plplot.svn.sourceforge.net/plplot/?rev=11949&view=rev Author: airwin Date: 2011-10-11 04:07:01 +0000 (Tue, 11 Oct 2011) Log Message: ----------- Correctly initialize the index used for the bhunt_search. This fix corrects undefined valgrind warnings for example 29. Modified Paths: -------------- trunk/lib/qsastime/qsastime.c Modified: trunk/lib/qsastime/qsastime.c =================================================================== --- trunk/lib/qsastime/qsastime.c 2011-10-10 19:26:27 UTC (rev 11948) +++ trunk/lib/qsastime/qsastime.c 2011-10-11 04:07:01 UTC (rev 11949) @@ -1159,6 +1159,10 @@ } } + // Set bhunt_search index to a definite value less than -1 to insure no + // initial hunt phase from some random index value is done. + ( *qsasconfig )->index = -40; + if ( scale != 0. ) { if ( ifbtime_offset ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |