From 3dde93322707a48a118f6501c3c9d750710b8799 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Dec 2013 23:43:19 +0000 Subject: [PATCH] -make checkers happy by always initializing map, also extra check just in case the branch conditions are not quite right --- src/mesh/gnunet-service-mesh_local.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c index a5128c46f..3e6285a20 100644 --- a/src/mesh/gnunet-service-mesh_local.c +++ b/src/mesh/gnunet-service-mesh_local.c @@ -789,7 +789,11 @@ GML_channel_get (struct MeshClient *c, MESH_ChannelNumber chid) map = c->incoming_channels; else if (chid >= GNUNET_MESH_LOCAL_CHANNEL_ID_CLI) map = c->own_channels; - + else + { + GNUNET_break (0); + map = NULL; + } if (NULL == map) { GNUNET_break (0); -- 2.25.1