From: Alan T. DeKok Date: Wed, 20 Jul 2022 18:42:29 +0000 (-0400) Subject: shut up static analyzer X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e1041ee4a13c59ab5d62d050bd43f2539e2fb7d;p=thirdparty%2Ffreeradius-server.git shut up static analyzer --- diff --git a/src/lib/unlang/edit.c b/src/lib/unlang/edit.c index 8fa393be1e5..da88e941e51 100644 --- a/src/lib/unlang/edit.c +++ b/src/lib/unlang/edit.c @@ -767,7 +767,9 @@ redo: case UNLANG_EDIT_CHECK_RHS: check_rhs: - fr_assert(current->lhs.vp != NULL); +#ifdef STATIC_ANALYZER + if (!current->lhs.vp) goto error; +#endif if (fr_type_is_leaf(current->lhs.vp->da->type)) { if (apply_edits_to_leaf(request, current, map) < 0) goto error;