]> Creatis software - clitk.git/commitdiff
Initialize a variable
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 2 Dec 2016 10:26:39 +0000 (11:26 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 2 Dec 2016 10:26:39 +0000 (11:26 +0100)
Valgrind wasn't happy without the initialization

vv/vvSlicerManagerCommand.cxx

index c645a27cc88992345b9e479d4b1409688a7a933c..9e978324b038d586b63d61420267858ed71d7f1c 100644 (file)
@@ -73,7 +73,7 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller,
   if (isi) {
     double x = isi->GetInteractor()->GetEventPosition()[0];
     double y = isi->GetInteractor()->GetEventPosition()[1];
-    double z;
+    double z(4000);
 
     int VisibleInWindow = this->FindSlicerNumber(isi->GetInteractor()->GetRenderWindow());
     vtkRenderer* renderer=NULL;