From: Bart Polot Date: Tue, 18 Sep 2012 13:22:30 +0000 (+0000) Subject: - log errors only when they are errors X-Git-Tag: initial-import-from-subversion-38251~11741 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dd663a8d291aa5cd0a1235856ba60b71c4c3d344;p=oweals%2Fgnunet.git - log errors only when they are errors --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 5f47c50d1..e185d0cd4 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -1335,11 +1335,13 @@ regex_next_edge (const struct MeshRegexBlock *block, struct MeshRegexSearchInfo *info = ctx->info; struct GNUNET_DHT_GetHandle *get_h; + int result; + /* Find the longest match for the current string position, * among tokens in the given block */ - GNUNET_break (GNUNET_OK == - GNUNET_MESH_regex_block_iterate (block, size, - ®ex_edge_iterator, ctx)); + result = GNUNET_MESH_regex_block_iterate (block, size, + ®ex_edge_iterator, ctx); + GNUNET_break (GNUNET_OK == result || SIZE_MAX == size); new_ctx = GNUNET_malloc (sizeof (struct MeshRegexSearchContext)); new_ctx->info = info;