diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-09-19 16:17:52 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-09-19 16:17:52 +0000 |
commit | f2c3d575ce12a4f48cb54bb7847922a24395eda8 (patch) | |
tree | 4bbd639d361269d0a42441399934c54ba7f23fc3 /src/regex/regex_test_lib.c | |
parent | ed6aacba92cc6f832c82e56fec4fd4d161342e6b (diff) |
- tweaks for hex experiments
Diffstat (limited to 'src/regex/regex_test_lib.c')
-rw-r--r-- | src/regex/regex_test_lib.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/regex/regex_test_lib.c b/src/regex/regex_test_lib.c index d39db7ef84..c55e0499a5 100644 --- a/src/regex/regex_test_lib.c +++ b/src/regex/regex_test_lib.c @@ -390,17 +390,7 @@ REGEX_TEST_read_from_file (const char *filename) offset += len + 1; if (len < 1) continue; - if (len < 6 || strncmp (®ex[len - 6], "(0|1)*", 6) != 0) - { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "%s (line %u) does not end in \"(0|1)*\"\n", - buffer, nr); - } - else - { - len -= 6; - regex[len] = '\0'; - } + regex[len] = '\0'; regex = GNUNET_realloc (regex, len + 1); GNUNET_array_grow (regexes, nr, nr + 1); GNUNET_assert (NULL == regexes[nr - 2]); |