diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-08 23:43:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-08 23:43:19 +0000 |
commit | 3dde93322707a48a118f6501c3c9d750710b8799 (patch) | |
tree | 627d1befe276e9569badeddcec4cb122b5ef3f72 /src/mesh/gnunet-service-mesh_local.c | |
parent | eedb4723298c710ce6d9bfb422251120d8014f58 (diff) | |
download | gnunet-3dde93322707a48a118f6501c3c9d750710b8799.tar.gz gnunet-3dde93322707a48a118f6501c3c9d750710b8799.zip |
-make checkers happy by always initializing map, also extra check just in case the branch conditions are not quite right
Diffstat (limited to 'src/mesh/gnunet-service-mesh_local.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_local.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) | |||
789 | map = c->incoming_channels; | 789 | map = c->incoming_channels; |
790 | else if (chid >= GNUNET_MESH_LOCAL_CHANNEL_ID_CLI) | 790 | else if (chid >= GNUNET_MESH_LOCAL_CHANNEL_ID_CLI) |
791 | map = c->own_channels; | 791 | map = c->own_channels; |
792 | 792 | else | |
793 | { | ||
794 | GNUNET_break (0); | ||
795 | map = NULL; | ||
796 | } | ||
793 | if (NULL == map) | 797 | if (NULL == map) |
794 | { | 798 | { |
795 | GNUNET_break (0); | 799 | GNUNET_break (0); |