]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
shut up static analyzer
authorAlan T. DeKok <aland@freeradius.org>
Mon, 28 Aug 2023 21:18:48 +0000 (17:18 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 28 Aug 2023 21:18:48 +0000 (17:18 -0400)
src/lib/util/regex.c

index e06c58644a6c52ddcf0ecb6e001c2a0971c87b22..011e8685ec1b6959e37cdf63d1ea0d2d621283ea 100644 (file)
@@ -1363,7 +1363,7 @@ int fr_regex_cmp_op(fr_token_t op, fr_value_box_t const *a, fr_value_box_t const
        TALLOC_CTX *ctx = NULL;
        size_t lhs_len;
        char const *lhs;
-       regex_t *regex;
+       regex_t *regex = NULL;
 
        if (!((op == T_OP_REG_EQ) || (op == T_OP_REG_NE))) {
                fr_strerror_const("Invalid operator for regex comparison");