Skip to content

Fix uninitialized use of numChannels in GenericEditor.cpp#309

Merged
aacuevas merged 1 commit intoopen-ephys:developmentfrom
tne-lab:editor-numChannels-fix
Aug 23, 2019
Merged

Fix uninitialized use of numChannels in GenericEditor.cpp#309
aacuevas merged 1 commit intoopen-ephys:developmentfrom
tne-lab:editor-numChannels-fix

Conversation

@ethanbb
Copy link
Copy Markdown
Contributor

@ethanbb ethanbb commented Jul 17, 2019

This is a tiny issue that I'm not sure why I haven't seen before.... There's a use of a local variable numChannels before it is initialized for processors that do not have a channelSelector, i.e. utilities. When I was running in debug mode and this happened, Windows gave me an error with a big red X saying this was a Bad Thing. Even though in this case I don't think it matters, it's good practice not to read uninitialized variables and I appreciate the strictness.

@aacuevas aacuevas merged commit 6f6b424 into open-ephys:development Aug 23, 2019
@ethanbb ethanbb deleted the editor-numChannels-fix branch August 23, 2019 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants