PlusToolkit / PlusLib

Software library for data acquisition, pre-processing, and calibration for navigated image-guided interventions.
http://www.plustoolkit.org
Other
130 stars 102 forks source link

uninitialized variable #1131

Closed maddin200 closed 7 months ago

maddin200 commented 7 months ago

src/PlusServer/Commands/vtkPlusStartStopRecordingCommand.cxx line 321 Code: vtkPlusVirtualCapture* captureDevice; // <-- may be better init if (!this->CaptureDeviceId.empty()) { captureDevice = GetCaptureDevice(this->CaptureDeviceId); } else if (!this->ChannelId.empty()) { captureDevice = GetOrCreateCaptureDevice(this->ChannelId); }

if (captureDevice == NULL) {