aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_internal_dht.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regex_internal_dht.c')
-rw-r--r--src/regex/regex_internal_dht.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regex/regex_internal_dht.c b/src/regex/regex_internal_dht.c
index 28ab884eb..bf15b9a96 100644
--- a/src/regex/regex_internal_dht.c
+++ b/src/regex/regex_internal_dht.c
@@ -382,7 +382,7 @@ regex_find_path (const struct GNUNET_HashCode *key,
382 */ 382 */
383static void 383static void
384dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp, 384dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp,
385 const struct GNUNET_HashCode * key, 385 const struct GNUNET_HashCode *key,
386 const struct GNUNET_PeerIdentity *get_path, 386 const struct GNUNET_PeerIdentity *get_path,
387 unsigned int get_path_length, 387 unsigned int get_path_length,
388 const struct GNUNET_PeerIdentity *put_path, 388 const struct GNUNET_PeerIdentity *put_path,
@@ -398,7 +398,8 @@ dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp,
398 char *datastore; 398 char *datastore;
399 399
400#if DEBUG_DHT 400#if DEBUG_DHT
401 if (NULL != put_path && 0 != put_path_length) 401 if ( (NULL != put_path) &&
402 (0 != put_path_length) )
402 { 403 {
403 datastore = GNUNET_strdup (GNUNET_i2s (&put_path[put_path_length - 1])); 404 datastore = GNUNET_strdup (GNUNET_i2s (&put_path[put_path_length - 1]));
404 } 405 }