aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-03-24 19:34:08 +0100
committercbdev <cb@cbcdn.com>2019-03-24 19:34:08 +0100
commitcf76f45ec229ac8f6f6fdbd3834c139f28c2ea57 (patch)
tree54240be3f19d2f33bf947bc1198f447809a7a702
parent3949f80417f0361e79f22658a8b900b228f125f1 (diff)
downloadmidimonster-cf76f45ec229ac8f6f6fdbd3834c139f28c2ea57.tar.gz
midimonster-cf76f45ec229ac8f6f6fdbd3834c139f28c2ea57.tar.bz2
midimonster-cf76f45ec229ac8f6f6fdbd3834c139f28c2ea57.zip
Don't use GNU extensions for initializers...
-rw-r--r--midimonster.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/midimonster.c b/midimonster.c
index 043f9e2..4784052 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;
@@ -255,6 +255,7 @@ int main(int argc, char** argv){
cfg_file = argv[1];
}
+ FD_ZERO(&all_fds);
//initialize backends
if(plugins_load(PLUGINS)){
fprintf(stderr, "Failed to initialize a backend\n");