AllenInstitute / ITCXOP2

BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

Some operations don't initialize return variables #19

Closed t-b closed 2 years ago

t-b commented 2 years ago

Found in https://github.com/AllenInstitute/ITCXOP2/blob/main/src/ITCReadADC2.cpp. It does not initialize RETURN_VARIABLE to something invalid but instead it now returns 0 on error. Maybe others are faulty as well.