diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-12-14 20:12:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-12-14 20:12:39 +0000 |
commit | a3aacce89467a1cbcd2193d8a667aad069b47be5 (patch) | |
tree | e2fc058e0fb2d89af10bedd36d5c472925b8af0e /src/regex/test_regex_iterate_api.c | |
parent | 0f16f15060952ceae16cf6e321b161b8793eed3c (diff) | |
download | gnunet-a3aacce89467a1cbcd2193d8a667aad069b47be5.tar.gz gnunet-a3aacce89467a1cbcd2193d8a667aad069b47be5.zip |
-minor fixes
Diffstat (limited to 'src/regex/test_regex_iterate_api.c')
-rw-r--r-- | src/regex/test_regex_iterate_api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regex/test_regex_iterate_api.c b/src/regex/test_regex_iterate_api.c index a680ca9f8..695bc3075 100644 --- a/src/regex/test_regex_iterate_api.c +++ b/src/regex/test_regex_iterate_api.c | |||
@@ -57,7 +57,8 @@ struct RegexStringPair | |||
57 | char *strings[20]; | 57 | char *strings[20]; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | void | 60 | |
61 | static void | ||
61 | key_iterator (void *cls, const struct GNUNET_HashCode *key, const char *proof, | 62 | key_iterator (void *cls, const struct GNUNET_HashCode *key, const char *proof, |
62 | int accepting, unsigned int num_edges, | 63 | int accepting, unsigned int num_edges, |
63 | const struct GNUNET_REGEX_Edge *edges) | 64 | const struct GNUNET_REGEX_Edge *edges) |
@@ -67,6 +68,7 @@ key_iterator (void *cls, const struct GNUNET_HashCode *key, const char *proof, | |||
67 | char *out_str; | 68 | char *out_str; |
68 | char *state_id = GNUNET_strdup (GNUNET_h2s (key)); | 69 | char *state_id = GNUNET_strdup (GNUNET_h2s (key)); |
69 | 70 | ||
71 | GNUNET_assert (NULL != proof); | ||
70 | if (GNUNET_YES == ctx->should_save_graph) | 72 | if (GNUNET_YES == ctx->should_save_graph) |
71 | { | 73 | { |
72 | if (GNUNET_YES == accepting) | 74 | if (GNUNET_YES == accepting) |