aboutsummaryrefslogtreecommitdiff
path: root/src/regex/perf-regex.c
diff options
context:
space:
mode:
authorbartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-18 18:25:20 +0000
committerbartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-18 18:25:20 +0000
commit9d805f411aa7c6929d55e43c25415cfea4f2847c (patch)
treebd32eb4f136a359c7c9953a39d774f714a65901e /src/regex/perf-regex.c
parentdce3f31e202692575cb54226c41a527bf36b6c04 (diff)
- check return
git-svn-id: https://gnunet.org/svn/gnunet@25529 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/regex/perf-regex.c')
-rw-r--r--src/regex/perf-regex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/regex/perf-regex.c b/src/regex/perf-regex.c
index 2571419d76..49a50cb8a9 100644
--- a/src/regex/perf-regex.c
+++ b/src/regex/perf-regex.c
@@ -65,6 +65,11 @@ main (int argc, char *const *argv)
}
regexes = GNUNET_REGEX_read_from_file (argv[1]);
+ if (NULL == regexes)
+ {
+ usage();
+ return 2;
+ }
buffer = GNUNET_REGEX_combine (regexes);
GNUNET_asprintf (&regex, "GNVPN-0001-PAD(%s)(0|1)*", buffer);