BoiseState-AdaptLab / adapt-lidar-tools

Contains code/project notes/ and Data for GEO+CS lidar data processing
GNU General Public License v3.0
8 stars 2 forks source link

Uninitialized float used in calculation #366

Closed jaredwhite547 closed 4 years ago

jaredwhite547 commented 4 years ago

In guess_peaks, the variable fwhm is uninitialized and can be used if an if statement is false.

I am not sure what it's default value should be.

jaredwhite547 commented 4 years ago

Line: https://github.com/BoiseState-AdaptLab/adapt-lidar-tools/blob/af616c8726a41d2fbe1ce3e80a0665a20c024e3c/src/GaussianFitter.cpp#L691