From dd663a8d291aa5cd0a1235856ba60b71c4c3d344 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 18 Sep 2012 13:22:30 +0000 Subject: [PATCH] - log errors only when they are errors --- src/mesh/gnunet-service-mesh.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.25.1