diff options
Diffstat (limited to 'src')
-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]) |