[Kst] branches/work/kst/1.6/kst/src/plugins/noise_addition

Andrew Walker arwalker at sumusltd.com
Fri Dec 14 21:48:19 CET 2007


SVN commit 748572 by arwalker:

remove compiler warnings

 M  +2 -1      noise_addition.cpp  


--- branches/work/kst/1.6/kst/src/plugins/noise_addition/noise_addition.cpp #748571:748572
@@ -40,7 +40,6 @@
 
 
 bool NoiseAddition::algorithm() {
-
   KstVectorPtr array    = inputVector(ARRAY);
   KstScalarPtr sigma    = inputScalar(SIGMA);
   KstVectorPtr output   = outputVector(OUTPUT);
@@ -51,6 +50,8 @@
   int iRetVal = false;
   int iLength = array->length();
 
+  pResult[0] = 0L;
+
   if (iLength > 0) {
     if (output->length() != iLength) {
       output->resize(iLength, false);


More information about the Kst mailing list