From b0bdf3b54c5af73af450b35b1a9473ab1ee9a4a4 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sun, 23 Oct 2016 10:48:30 +0200 Subject: ipcpd: Fix unused variable --- src/ipcpd/local/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ipcpd/local/main.c b/src/ipcpd/local/main.c index c9ad0ae6..f6fe4ec1 100644 --- a/src/ipcpd/local/main.c +++ b/src/ipcpd/local/main.c @@ -147,7 +147,10 @@ void ipcp_sig_handler(int sig, siginfo_t * info, void * c) static int ipcp_local_bootstrap(struct dif_config * conf) { - assert (conf->type == THIS_TYPE); + assert(conf); + assert(conf->type == THIS_TYPE); + + (void) conf; pthread_rwlock_wrlock(&ipcpi.state_lock); -- cgit v1.2.3