From: Alan T. DeKok Date: Sat, 11 Dec 2021 20:15:29 +0000 (-0500) Subject: and one more "shut up clang" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaec842e0b5973b0c7757c3d18891e1fa79a3fcf;p=thirdparty%2Ffreeradius-server.git and one more "shut up clang" it's way to dumb and complaining for it's own good --- diff --git a/src/lib/unlang/edit.c b/src/lib/unlang/edit.c index 663d7ae8a11..e2eabebf454 100644 --- a/src/lib/unlang/edit.c +++ b/src/lib/unlang/edit.c @@ -241,6 +241,9 @@ static int apply_edits(request_t *request, unlang_frame_state_edit_t *state, map fr_assert(state->rhs.vpt != NULL); fr_assert(state->lhs.vp != NULL); +#ifdef __clang_analyzer__ + if (!state->lhs.vp) return -1; +#endif /* * Get the resulting value box. */