aboutsummaryrefslogtreecommitdiff
path: root/src/regex/perf-regex.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-15 00:10:18 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-15 00:10:18 +0000
commite2a56bc0f0f2b68463c75f1f2d1aa57138d3ffa3 (patch)
tree7ef22b15539d8ff8697fe1bede67a130c764fd7f /src/regex/perf-regex.c
parentec55f5c26e794380af9815d8c9ca40c38740a361 (diff)
-bugfixes
git-svn-id: https://gnunet.org/svn/gnunet@25492 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/regex/perf-regex.c')
-rw-r--r--src/regex/perf-regex.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regex/perf-regex.c b/src/regex/perf-regex.c
index 15ca1690e8..e0ac7b3d2b 100644
--- a/src/regex/perf-regex.c
+++ b/src/regex/perf-regex.c
@@ -112,16 +112,17 @@ main (int argc, char *const *argv)
buffer = GNUNET_REGEX_combine (regexes);
GNUNET_asprintf (&regex, "GNVPN-0001-PAD(%s)(0|1)*", buffer);
+ size = strlen (regex);
- fprintf (stderr, "Combined regex:\n%s\n", regex);
-// return 0;
+ // fprintf (stderr, "Combined regex:\n%s\n", regex);
+ // return 0;
compression = atoi (argv[2]);
dfa = GNUNET_REGEX_construct_dfa (regex, size, compression);
GNUNET_REGEX_automaton_destroy (dfa);
GNUNET_free (buffer);
for (i=0;i<nr;i++)
- GNUNET_free (regexes[i]);
+ GNUNET_free_non_null (regexes[i]);
GNUNET_array_grow (regexes, nr, 0);
return 0;
}