diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-09-26 12:49:55 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-09-26 12:49:55 +0000 |
commit | 6c554033d09f4302848f598ed91246df21ca6c35 (patch) | |
tree | cabb27cb6458f0d1e7c34d7eba5875b0f7f46538 /src/regex | |
parent | 4a648cf2a090a28d61c27fd4c06e7a62d5e15752 (diff) | |
download | gnunet-6c554033d09f4302848f598ed91246df21ca6c35.tar.gz gnunet-6c554033d09f4302848f598ed91246df21ca6c35.zip |
- fix
Diffstat (limited to 'src/regex')
-rw-r--r-- | src/regex/regex_test_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex/regex_test_lib.c b/src/regex/regex_test_lib.c index c55e0499a..449575150 100644 --- a/src/regex/regex_test_lib.c +++ b/src/regex/regex_test_lib.c | |||
@@ -130,7 +130,7 @@ regex_combine (struct RegexCombineCtx *ctx) | |||
130 | { | 130 | { |
131 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "empty, returning ''\n"); | 131 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "empty, returning ''\n"); |
132 | GNUNET_free (regex); | 132 | GNUNET_free (regex); |
133 | return GNUNET_strdup (ctx->s); | 133 | return NULL == ctx->s ? NULL : GNUNET_strdup (ctx->s); |
134 | } | 134 | } |
135 | 135 | ||
136 | if ('|' == regex[len - 1]) | 136 | if ('|' == regex[len - 1]) |