-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverity fixes - initializations_1 #1462
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good
I'll have to fix this PR given this MVSC feature: |
684c15b
to
11fcc2a
Compare
11fcc2a
to
a664d94
Compare
@@ -12,6 +12,7 @@ | |||
|
|||
#include <csetjmp> | |||
#include <cstdio> | |||
#include <string.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use cstring
instead of string.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done bdb81ae
@@ -10,6 +10,7 @@ | |||
#include <cstdio> | |||
#include <cstdlib> | |||
#include <portaudio.h> | |||
#include <string.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 67ad260
m_do_not_clip_infinity_enable(false), | ||
m_inExpressMode(false), | ||
m_pwm_val(0), | ||
m_device_status(DEVICE_OK_STANBY), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not check this, but "STANBY" looks like a typo...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the actual name of the status
DEVICE_OK_STANBY = 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened issue #1469
a664d94
to
67e2fe4
Compare
67e2fe4
to
c0982d6
Compare
Fixes some 'uninitialized pointer or scalar field' issues raised by Coverity.
Affect components