From 4057695fe65dd0b8c8604c75d5f60d265f0dbf9a Mon Sep 17 00:00:00 2001
From: Sander Vrijders <sander.vrijders@ugent.be>
Date: Wed, 22 Mar 2017 15:21:44 +0100
Subject: 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.
---
 src/ipcpd/normal/routing.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/ipcpd')

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.");
-- 
cgit v1.2.3