diff options
author | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-18 18:25:20 +0000 |
---|---|---|
committer | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-18 18:25:20 +0000 |
commit | 9d805f411aa7c6929d55e43c25415cfea4f2847c (patch) | |
tree | bd32eb4f136a359c7c9953a39d774f714a65901e | |
parent | dce3f31e202692575cb54226c41a527bf36b6c04 (diff) |
- check return
git-svn-id: https://gnunet.org/svn/gnunet@25529 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r-- | src/regex/perf-regex.c | 5 |
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 (®ex, "GNVPN-0001-PAD(%s)(0|1)*", buffer); |