summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-03-22 15:21:44 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2017-03-22 15:21:44 +0100
commit4057695fe65dd0b8c8604c75d5f60d265f0dbf9a (patch)
tree820c4dd380bf80bf4c209f57e45b03678e4cbf4d /src/ipcpd
parentd9b113acbecb3f78e3ace561365a5f0add949787 (diff)
downloadouroboros-4057695fe65dd0b8c8604c75d5f60d265f0dbf9a.tar.gz
ouroboros-4057695fe65dd0b8c8604c75d5f60d265f0dbf9a.zip
ipcpd: normal: Initialize qosspec
The QoS spec was not being initialized before being added to the graph structure, resulting in an error when compiled with clang.
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/normal/routing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipcpd/normal/routing.c b/src/ipcpd/normal/routing.c
index 211becb4..70999951 100644
--- a/src/ipcpd/normal/routing.c
+++ b/src/ipcpd/normal/routing.c
@@ -161,6 +161,8 @@ static int read_fso(char * path,
fso_t * fso;
qosspec_t qs;
+ memset(&qs, 0, sizeof(qs));
+
len = rib_read(path, ro, BUF_SIZE);
if (len < 0) {
log_err("Failed to read FSO.");