aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-03-24 19:31:01 +0100
committercbdev <cb@cbcdn.com>2019-03-24 19:31:01 +0100
commit3949f80417f0361e79f22658a8b900b228f125f1 (patch)
treed06406116140048f1941527a91d75ea2b3b1ead9
parent1ed17293bedaf5bf5182d863cd406d7eb66b4501 (diff)
downloadmidimonster-3949f80417f0361e79f22658a8b900b228f125f1.tar.gz
midimonster-3949f80417f0361e79f22658a8b900b228f125f1.tar.bz2
midimonster-3949f80417f0361e79f22658a8b900b228f125f1.zip
Fix minor issues reported by Coverity Scan
-rw-r--r--backends/ola.cpp2
-rw-r--r--midimonster.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/backends/ola.cpp b/backends/ola.cpp
index c9c535c..632cef7 100644
--- a/backends/ola.cpp
+++ b/backends/ola.cpp
@@ -242,7 +242,7 @@ static int ola_start(){
ola_select->AddReadDescriptor(ola_socket);
- fprintf(stderr, "OLA backend registering %zu descriptors to core\n", 1);
+ fprintf(stderr, "OLA backend registering connection descriptor to core\n");
if(mm_manage_fd(ola_socket->ReadDescriptor(), BACKEND_NAME, 1, NULL)){
goto bail;
}
diff --git a/midimonster.c b/midimonster.c
index 00d11f3..043f9e2 100644
--- a/midimonster.c
+++ b/midimonster.c
@@ -244,7 +244,7 @@ static fd_set fds_collect(int* max_fd){
}
int main(int argc, char** argv){
- fd_set all_fds, read_fds;
+ fd_set all_fds = {}, read_fds;
event_collection* secondary = NULL;
struct timeval tv;
size_t u, n;