]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
and one more "shut up clang"
authorAlan T. DeKok <aland@freeradius.org>
Sat, 11 Dec 2021 20:15:29 +0000 (15:15 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 11 Dec 2021 20:15:29 +0000 (15:15 -0500)
it's way to dumb and complaining for it's own good

src/lib/unlang/edit.c

index 663d7ae8a116d320bf7d7b84bbbcc4c73f305201..e2eabebf454fc77fb01cdb5c1a6963886f6efbda 100644 (file)
@@ -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.
         */